5.5 KiB
5.5 KiB
Release 0.4.2 (2022-06-17)
- The new
ComplexFloat
trait provides a generic abstraction between floating-pointT
andComplex<T>
. Complex::exp
now handles edge cases with NaN and infinite parts.
Contributors: @cuviper, @JorisDeRidder, @obsgolem, @YakoYakoYokuYoku
Release 0.4.1 (2022-04-29)
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 implementsbytemuck
traits whenT
does.Complex::cis
creates a complex with the given phase, ei θ.
Contributors: @bluss, @bradleyharden, @cuviper, @rayhem
Release 0.4.0 (2021-03-05)
rand
support has been updated to 0.8, requiring Rust 1.36.
Contributors: @cuviper
Release 0.3.1 (2020-10-29)
- Clarify the license specification as "MIT OR Apache-2.0".
Contributors: @cuviper
Release 0.3.0 (2020-06-13)
Enhancements
- The new "libm" feature passes through to
num-traits
, enablingFloat
features on no-std
builds.
Breaking Changes
num-complex
now requires Rust 1.31 or greater.- The "i128" opt-in feature was removed, now always available.
- Updated public dependences:
rand
support has been updated to 0.7, requiring Rust 1.32.
- Methods for
T: Float
now take values instead of references, most notably affecting the constructorfrom_polar
.
Contributors: @cuviper, @SOF3, @vks
Release 0.2.4 (2020-01-09)
Complex::new
is now aconst fn
for Rust 1.31 and later.- Updated the
autocfg
build dependency to 1.0.
Contributors: @burrbull, @cuviper, @dingelish
Release 0.2.3 (2019-06-11)
Complex::sqrt()
is now more accurate for negative reals.Complex::cbrt()
computes the principal cube root.
Contributors: @cuviper
Release 0.2.2 (2019-06-10)
Complex::l1_norm()
computes the Manhattan distance from the origin.Complex::fdiv()
andfinv()
use floating-point for inversion, which may avoid overflows for some inputs, at the cost of trigonometric rounding.Complex
now implementsnum_traits::MulAdd
andMulAddAssign
.Complex
now implementsZero::set_zero
andOne::set_one
.Complex
now implementsnum_traits::Pow
and addspowi
andpowu
.
Contributors: @adamnemecek, @cuviper, @ignatenkobrain, @Schultzer
Release 0.2.1 (2018-10-08)
Contributors: @cuviper, @termoshtt
Release 0.2.0 (2018-05-24)
Enhancements
Complex
now implementsnum_traits::Inv
andOne::is_one
.Complex
now implementsSum
andProduct
.Complex
now supportsi128
andu128
components with Rust 1.26+.Complex
now optionally supportsrand
0.5, implementing theStandard
distribution and a genericComplexDistribution
.Rem
with a scalar divisor now avoidsnorm_sqr
overflow.
Breaking Changes
num-complex
now requires rustc 1.15 or greater.- There is now a
std
feature, enabled by default, along with the implication that building without this feature makes this a#![no_std]
crate. A few methods now requireFloatCore
, and the remaining methods based onFloat
are only supported withstd
. - The
serde
dependency has been updated to 1.0, andrustc-serialize
is no longer supported bynum-complex
.
Contributors: @clarcharr, @cuviper, @shingtaklam1324, @termoshtt
Release 0.1.43 (2018-03-08)
Contributors: @shingtaklam1324
Release 0.1.42 (2018-02-07)
Contributors: @cuviper
Prior releases
No prior release notes were kept. Thanks all the same to the many contributors that have made this crate what it is!