Release 0.4.6 (2024-05-07)
May 7, 2024 · View on GitHub
- Upgrade to 2021 edition, MSRV 1.60
- Add
const ZERO/ONE/Iand implementConstZeroandConstOne - Add
c32andc64functions to help constructComplexvalues
Contributors: @cuviper
Release 0.4.5 (2024-02-06)
Contributors: @cuviper, @WalterSmuts
Release 0.4.4 (2023-08-13)
Contributors: @cuviper, @domna
Release 0.4.3 (2023-01-19)
Contributors: @cuviper, @zyansheep
Release 0.4.2 (2022-06-17)
- The new
ComplexFloattrait provides a generic abstraction between floating-pointTandComplex<T>. Complex::expnow handles edge cases with NaN and infinite parts.
Contributors: @cuviper, @JorisDeRidder, @obsgolem, @YakoYakoYokuYoku
Release 0.4.1 (2022-04-29)
Complex::from_str_radixnow returns an error for radix > 18, because 'i' and 'j' as digits are ambiguous with i or j imaginary parts.Complex<T>now implementsbytemucktraits whenTdoes.Complex::ciscreates a complex with the given phase, ei θ.
Contributors: @bluss, @bradleyharden, @cuviper, @rayhem
Release 0.4.0 (2021-03-05)
randsupport 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, enablingFloatfeatures on no-stdbuilds.
Breaking Changes
num-complexnow requires Rust 1.31 or greater.- The "i128" opt-in feature was removed, now always available.
- Updated public dependences:
randsupport has been updated to 0.7, requiring Rust 1.32.
- Methods for
T: Floatnow take values instead of references, most notably affecting the constructorfrom_polar.
Contributors: @cuviper, @SOF3, @vks
Release 0.2.4 (2020-01-09)
Complex::newis now aconst fnfor Rust 1.31 and later.- Updated the
autocfgbuild 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.Complexnow implementsnum_traits::MulAddandMulAddAssign.Complexnow implementsZero::set_zeroandOne::set_one.Complexnow implementsnum_traits::Powand addspowiandpowu.
Contributors: @adamnemecek, @cuviper, @ignatenkobrain, @Schultzer
Release 0.2.1 (2018-10-08)
Contributors: @cuviper, @termoshtt
Release 0.2.0 (2018-05-24)
Enhancements
Complexnow implementsnum_traits::InvandOne::is_one.Complexnow implementsSumandProduct.Complexnow supportsi128andu128components with Rust 1.26+.Complexnow optionally supportsrand0.5, implementing theStandarddistribution and a genericComplexDistribution.Remwith a scalar divisor now avoidsnorm_sqroverflow.
Breaking Changes
num-complexnow requires rustc 1.15 or greater.- There is now a
stdfeature, 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 onFloatare only supported withstd. - The
serdedependency has been updated to 1.0, andrustc-serializeis 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!