Trait basic_dsp_vector::RealOps
source · [−]pub trait RealOps {
fn abs(&mut self);
}
Expand description
Operations on real types.
Failures
If one of the methods is called on complex data then self.len()
will be set to 0
.
To avoid this it’s recommended to use the to_real_time_vec
, to_real_freq_vec
to_complex_time_vec
and to_complex_freq_vec
constructor methods since
the resulting types will already check at compile time (using the type system)
that the data is real.