Trait basic_dsp::matrix::ToDspMatrix

source ·
pub trait ToDspMatrix<V, T>
where V: Vector<T>, T: RealNumber,
{ type Output: Matrix<V, T>; // Required method fn to_gen_dsp_mat( self, is_complex: bool, domain: DataDomain ) -> Self::Output; }
Expand description

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

Required Associated Types§

source

type Output: Matrix<V, T>

Required Methods§

source

fn to_gen_dsp_mat(self, is_complex: bool, domain: DataDomain) -> Self::Output

Create a new generic matrix. delta can be changed after construction with a call of set_delta.

For complex matrices with an odd length the resulting value will have a zero length.

Implementations on Foreign Types§

source§

impl<T, S> ToDspMatrix<DspVec<S, T, RealOrComplex, TimeOrFreq>, T> for [S; 2]
where T: RealNumber, S: ToDspVector<T> + ToSlice<T>,

source§

impl<T, S> ToDspMatrix<DspVec<S, T, RealOrComplex, TimeOrFreq>, T> for [S; 3]
where T: RealNumber, S: ToDspVector<T> + ToSlice<T>,

source§

impl<T, S> ToDspMatrix<DspVec<S, T, RealOrComplex, TimeOrFreq>, T> for [S; 4]
where T: RealNumber, S: ToDspVector<T> + ToSlice<T>,

source§

impl<T, S> ToDspMatrix<DspVec<S, T, RealOrComplex, TimeOrFreq>, T> for Vec<S>
where T: RealNumber, S: ToDspVector<T> + ToSlice<T>,

§

type Output = MatrixMxN<DspVec<S, T, RealOrComplex, TimeOrFreq>, S, T>

source§

fn to_gen_dsp_mat( self, is_complex: bool, domain: DataDomain ) -> <Vec<S> as ToDspMatrix<DspVec<S, T, RealOrComplex, TimeOrFreq>, T>>::Output

Implementors§