[][src]Trait basic_dsp::ComplexToRealSetterOps

pub trait ComplexToRealSetterOps<A, T, N, D> where
    A: GetMetaData<T, N, D>,
    D: Domain,
    N: NumberSpace,
    T: RealNumber
{ fn set_real_imag(&mut self, real: &A, imag: &A) -> Result<(), ErrorReason>;
fn set_mag_phase(&mut self, mag: &A, phase: &A) -> Result<(), ErrorReason>; }

Defines setters to create complex data from real data.

Failures

All operations in this trait set self.len() to 0 if the type isn't in the complex number space.

Required methods

fn set_real_imag(&mut self, real: &A, imag: &A) -> Result<(), ErrorReason>

Overrides the self vectors data with the real and imaginary data in the given vectors. real and imag must have the same size.

fn set_mag_phase(&mut self, mag: &A, phase: &A) -> Result<(), ErrorReason>

Overrides the self vectors data with the magnitude and phase data in the given vectors. Note that self vector will immediately convert the data into a real and imaginary representation of the complex numbers which is its default format. mag and phase must have the same size.

Loading content...

Implementors

impl<S, T, N, NR, D, O, DO> ComplexToRealSetterOps<O, T, NR, DO> for DspVec<S, T, N, D> where
    D: Domain,
    DO: PosEq<D> + Domain,
    N: ComplexNumberSpace,
    NR: RealNumberSpace,
    O: Index<Range<usize>, Output = [T]> + Vector<T> + GetMetaData<T, NR, DO>,
    S: ToSliceMut<T> + Resize,
    T: RealNumber,
    DspVec<S, T, N, D>: ToRealResult
[src]

impl<V, S, T, N, D, O> ComplexToRealSetterOps<O, T, N, D> for Matrix2xN<V, S, T> where
    D: Domain,
    N: NumberSpace,
    O: Matrix<V, T> + GetMetaData<T, N, D>,
    S: ToSlice<T>,
    T: RealNumber,
    V: Vector<T> + ComplexToRealSetterOps<V, T, N, D> + GetMetaData<T, N, D>, 
[src]

impl<V, S, T, N, D, O> ComplexToRealSetterOps<O, T, N, D> for Matrix3xN<V, S, T> where
    D: Domain,
    N: NumberSpace,
    O: Matrix<V, T> + GetMetaData<T, N, D>,
    S: ToSlice<T>,
    T: RealNumber,
    V: Vector<T> + ComplexToRealSetterOps<V, T, N, D> + GetMetaData<T, N, D>, 
[src]

impl<V, S, T, N, D, O> ComplexToRealSetterOps<O, T, N, D> for Matrix4xN<V, S, T> where
    D: Domain,
    N: NumberSpace,
    O: Matrix<V, T> + GetMetaData<T, N, D>,
    S: ToSlice<T>,
    T: RealNumber,
    V: Vector<T> + ComplexToRealSetterOps<V, T, N, D> + GetMetaData<T, N, D>, 
[src]

impl<V, S, T, N, D, O> ComplexToRealSetterOps<O, T, N, D> for MatrixMxN<V, S, T> where
    D: Domain,
    N: NumberSpace,
    O: Matrix<V, T> + GetMetaData<T, N, D>,
    S: ToSlice<T>,
    T: RealNumber,
    V: Vector<T> + ComplexToRealSetterOps<V, T, N, D> + GetMetaData<T, N, D>, 
[src]

Loading content...