pub trait FromVectorFloat<T>where
    T: RealNumber,
{ type Output; fn getf(self) -> (Self::Output, usize); }
Expand description

Retrieves the underlying storage from a vector. Returned value will always hold floating point numbers.

Required Associated Types

Type of the underlying storage of a vector.

Required Methods

Gets the underlying storage and the number of elements which contain valid data. In case of complex vectors the values are returned real-imag pairs. Refer to Into or FromVector for a method which returns the data of complex vectors in a different manner.

Example
use basic_dsp_vector::*;
let v: Vec<Complex<f64>> = vec!(Complex::new(1.0, 2.0), Complex::new(3.0, 4.0));
let v: DspVec<Vec<f64>, f64, meta::Complex, meta::Time> = v.to_complex_time_vec();
// Note that the resulting type is always a vector or floats and not a vector of complex numbers
let (v, p): (Vec<f64>, usize) = v.getf();
assert_eq!(4, p);
assert_eq!(vec!(1.0, 2.0, 3.0, 4.0), v);

Implementors