Trait basic_dsp_vector::ToDspVector[][src]

pub trait ToDspVector<T>: Sized + ToSlice<T> where
    T: RealNumber
{ fn to_gen_dsp_vec(
        self,
        is_complex: bool,
        domain: DataDomain
    ) -> GenDspVec<Self, T>;
fn to_dsp_vec<N, D>(
        self,
        meta_data: &TypeMetaData<T, N, D>
    ) -> DspVec<Self, T, N, D>
    where
        N: NumberSpace,
        D: Domain
; }

Conversion from a generic data type into a dsp vector which tracks its meta information (domain and number space) only at runtime. See ToRealVector and ToComplexVector for alternatives which track most of the meta data with the type system and therefore avoid runtime errors.

Required Methods

Create a new generic vector. 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.

Create a new vector from the given meta data. The meta data can be retrieved from an existing vector. If no existing vector is available then one of the other constructor methods should be used.

Implementations on Foreign Types

impl<A: Array> ToDspVector<A::Item> for ArrayVec<A> where
    A::Item: RealNumber
[src]

impl<'a, T> ToDspVector<T> for &'a [T] where
    T: RealNumber
[src]

impl<'a, T> ToDspVector<T> for &'a mut [T] where
    T: RealNumber
[src]

impl<T> ToDspVector<T> for Vec<T> where
    T: RealNumber
[src]

impl<T> ToDspVector<T> for Box<[T]> where
    T: RealNumber
[src]

Implementors