Trait basic_dsp::matrix::ToDspMatrix
source · [−]pub trait ToDspMatrix<V, T>where
V: Vector<T>,
T: RealNumber,{
type Output: Matrix<V, T>;
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
Required Methods
sourcefn to_gen_dsp_mat(self, is_complex: bool, domain: DataDomain) -> Self::Output
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.