NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
crates.io · #320 most downloaded on crates.io
Complex numbers implementation for Rust
Last release 2 years ago
no release in 18 months
Ships fairly regularly
a new release about every 6 months
Most releases are documented
notes for 16 of 26 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
26 releases · first in 2016
chore: Release num-complex version 0.4.6
chore: Release num-complex version 0.4.6
const ZERO/ONE/I and implement ConstZero and ConstOnec32 and c64 functions to help construct Complex valuesContributors: @cuviper
[Relaxed T bounds on serde::Deserialize for Complex .][119]
Contributors: @cuviper, @WalterSmuts
One column per quarter.
[Fixes NaN value for powc of zero][116]
Contributors: @cuviper, @domna
[Complex now optionally supports bytecheck 0.6 and rkyv 0.7][110].
Contributors: @cuviper, @zyansheep
[The new ComplexFloat trait][95] provides a generic abstraction between floating-point T and Complex .
ComplexFloat trait provides a generic abstraction between
floating-point T and Complex<T>.Complex::exp now handles edge cases with NaN and infinite parts.Contributors: @cuviper, @JorisDeRidder, @obsgolem, @YakoYakoYokuYoku
[Complex::from_str_radix now returns an error for radix > 18][90], because 'i' and 'j' as digits are ambiguous with _i_ or _j_ imaginary parts.
Complex::from_str_radix now returns an error for radix > 18, because
'i' and 'j' as digits are ambiguous with i or j imaginary parts.Complex<T> now implements bytemuck traits when T does.Complex::cis creates a complex with the given phase, e<sup>i θ</sup>.Contributors: @bluss, @bradleyharden, @cuviper, @rayhem
rand support has been updated to 0.8, requiring Rust 1.36.
rand support has been updated to 0.8, requiring Rust 1.36.Contributors: @cuviper
Clarify the license specification as "MIT OR Apache-2.0".
Contributors: @cuviper
[The new "libm" feature passes through to num-traits][73], enabling Float features on no-std builds.
num-traits, enabling Float
features on no-std builds.num-complex now requires Rust 1.31 or greater.
rand support has been updated to 0.7, requiring Rust 1.32.T: Float now take values instead of references, most
notably affecting the constructor from_polar.Contributors: @cuviper, @SOF3, @vks
[Complex::new is now a const fn for Rust 1.31 and later][63].
Complex::new is now a const fn for Rust 1.31 and later.autocfg build dependency to 1.0.Contributors: @burrbull, @cuviper, @dingelish
[Complex::sqrt() is now more accurate for negative reals][60].
[Complex::l1_norm() computes the Manhattan distance from the origin][43].
Complex::l1_norm() computes the Manhattan distance from the origin.Complex::fdiv() and finv() use floating-point for inversion, which
may avoid overflows for some inputs, at the cost of trigonometric rounding.Complex now implements num_traits::MulAdd and MulAddAssign.Complex now implements Zero::set_zero and One::set_one.Complex now implements num_traits::Pow and adds powi and powu.Contributors: @adamnemecek, @cuviper, @ignatenkobrain, @Schultzer
[Complex now implements ToPrimitive, FromPrimitive, AsPrimitive, and NumCast][33].
Contributors: @cuviper, @termoshtt
[Complex now implements num_traits::Inv and One::is_one][17].
Complex now implements num_traits::Inv and One::is_one.Complex now implements Sum and Product.Complex now supports i128 and u128 components with Rust 1.26+.Complex now optionally supports rand 0.5, implementing the
Standard distribution and a generic ComplexDistribution.Rem with a scalar divisor now avoids norm_sqr overflow.num-complex now requires rustc 1.15 or greater.std feature, enabled by default, along with the
implication that building without this feature makes this a #![no_std]
crate. A few methods now require FloatCore, and the remaining methods
based on Float are only supported with std.serde dependency has been updated to 1.0, and rustc-serialize
is no longer supported by num-complex.Contributors: @clarcharr, @cuviper, @shingtaklam1324, @termoshtt
Nothing published for this version
[Fix a usage typo in README.md][20].
Contributors: @shingtaklam1324
[num-complex now has its own source repository][num-356] at [rust-num/num-complex][home].
Contributors: @cuviper
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →