Skip to content

Other utilities

spcan edited this page Mar 27, 2018 · 1 revision

Other utilities

Nightly

Accessed with the feature nightly

For the rust nightly compiler, the Traits Zero and One are implemented for Complex and EComplex

These include the methods one() and zero(), which respectively return the one and zero values of the structs, and the is_zero() method, which checks if a number is equal to zero.

num-traits crate

Accessed with the feature num_complex_compatible

With this feature, the crate is made compatible with the num-complex crate, from the num-traits collection

Complex and EComplex can be cast to the types Complex32 and Complex64

Clone this wiki locally