Trait basic_dsp_vector::ToComplexVector [−][src]
pub trait ToComplexVector<S, T> where
S: Sized + ToSlice<T>,
T: RealNumber, { fn to_complex_time_vec(self) -> ComplexTimeVec<S, T>; fn to_complex_freq_vec(self) -> ComplexFreqVec<S, T>; }
Conversion from a generic data type into a dsp vector with complex data.
Required Methods
fn to_complex_time_vec(self) -> ComplexTimeVec<S, T>
Create a new vector in complex number space and time domain.
delta
can be changed after construction with a call of set_delta
.
For complex vectors with an odd length the resulting value will have a zero length.
fn to_complex_freq_vec(self) -> ComplexFreqVec<S, T>
Create a new vector in complex number space and frequency domain.
delta
can be changed after construction with a call of set_delta
.
For complex vectors with an odd length the resulting value will have a zero length.
Implementations on Foreign Types
impl<A: Array> ToComplexVector<ArrayVec<A>, A::Item> for ArrayVec<A> where
A::Item: RealNumber,
[src]
impl<A: Array> ToComplexVector<ArrayVec<A>, A::Item> for ArrayVec<A> where
A::Item: RealNumber,
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, A::Item>
[src]
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, A::Item>
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, A::Item>
[src]
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, A::Item>
impl<'a, T> ToComplexVector<&'a [T], T> for &'a [T] where
T: RealNumber,
[src]
impl<'a, T> ToComplexVector<&'a [T], T> for &'a [T] where
T: RealNumber,
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, T>
[src]
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, T>
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, T>
[src]
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, T>
impl<'a, T> ToComplexVector<&'a [T], T> for &'a [Complex<T>] where
T: RealNumber,
[src]
impl<'a, T> ToComplexVector<&'a [T], T> for &'a [Complex<T>] where
T: RealNumber,
fn to_complex_time_vec(self) -> ComplexTimeVec<&'a [T], T>
[src]
fn to_complex_time_vec(self) -> ComplexTimeVec<&'a [T], T>
fn to_complex_freq_vec(self) -> ComplexFreqVec<&'a [T], T>
[src]
fn to_complex_freq_vec(self) -> ComplexFreqVec<&'a [T], T>
impl<'a, T> ToComplexVector<&'a mut [T], T> for &'a mut [T] where
T: RealNumber,
[src]
impl<'a, T> ToComplexVector<&'a mut [T], T> for &'a mut [T] where
T: RealNumber,
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, T>
[src]
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, T>
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, T>
[src]
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, T>
impl<'a, T> ToComplexVector<&'a mut [T], T> for &'a mut [Complex<T>] where
T: RealNumber,
[src]
impl<'a, T> ToComplexVector<&'a mut [T], T> for &'a mut [Complex<T>] where
T: RealNumber,
fn to_complex_time_vec(self) -> ComplexTimeVec<&'a mut [T], T>
[src]
fn to_complex_time_vec(self) -> ComplexTimeVec<&'a mut [T], T>
fn to_complex_freq_vec(self) -> ComplexFreqVec<&'a mut [T], T>
[src]
fn to_complex_freq_vec(self) -> ComplexFreqVec<&'a mut [T], T>
impl<T> ToComplexVector<Vec<T>, T> for Vec<T> where
T: RealNumber,
[src]
impl<T> ToComplexVector<Vec<T>, T> for Vec<T> where
T: RealNumber,
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, T>
[src]
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, T>
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, T>
[src]
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, T>
impl<T> ToComplexVector<Vec<T>, T> for Vec<Complex<T>> where
T: RealNumber,
[src]
impl<T> ToComplexVector<Vec<T>, T> for Vec<Complex<T>> where
T: RealNumber,
fn to_complex_time_vec(self) -> ComplexTimeVec<Vec<T>, T>
[src]
fn to_complex_time_vec(self) -> ComplexTimeVec<Vec<T>, T>
fn to_complex_freq_vec(self) -> ComplexFreqVec<Vec<T>, T>
[src]
fn to_complex_freq_vec(self) -> ComplexFreqVec<Vec<T>, T>
impl<T> ToComplexVector<Box<[T]>, T> for Box<[T]> where
T: RealNumber,
[src]
impl<T> ToComplexVector<Box<[T]>, T> for Box<[T]> where
T: RealNumber,
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, T>
[src]
fn to_complex_time_vec(self) -> ComplexTimeVec<Self, T>
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, T>
[src]
fn to_complex_freq_vec(self) -> ComplexFreqVec<Self, T>