Struct basic_dsp_vector::combined_ops::Identifier
[−]
[src]
pub struct Identifier<T, N, D> where
T: RealNumber,
D: Domain,
N: NumberSpace, { /* fields omitted */ }
An identifier is just a placeholder for a data type used to ensure already at compile time that operations are valid.
Trait Implementations
impl<T, N, D> GetMetaData<T, N, D> for Identifier<T, N, D> where
T: RealNumber,
N: NumberSpace,
D: Domain,
[src]
T: RealNumber,
N: NumberSpace,
D: Domain,
fn get_meta_data(&self) -> TypeMetaData<T, N, D>
Gets a copy of the vector meta data. This can be used to create new types with the same meta data. Read more
impl<T, N, D> OffsetOps<T> for Identifier<T, N, D> where
T: RealNumber,
N: NumberSpace,
D: Domain,
[src]
T: RealNumber,
N: NumberSpace,
D: Domain,
impl<T, N, D> ScaleOps<T> for Identifier<T, N, D> where
T: RealNumber,
N: NumberSpace,
D: Domain,
[src]
T: RealNumber,
N: NumberSpace,
D: Domain,
impl<T, N, D> OffsetOps<Complex<T>> for Identifier<T, N, D> where
T: RealNumber,
N: ComplexNumberSpace,
D: Domain,
[src]
T: RealNumber,
N: ComplexNumberSpace,
D: Domain,
impl<T, N, D> ScaleOps<Complex<T>> for Identifier<T, N, D> where
T: RealNumber,
N: ComplexNumberSpace,
D: Domain,
[src]
T: RealNumber,
N: ComplexNumberSpace,
D: Domain,
impl<T, N, D> TrigOps for Identifier<T, N, D> where
T: RealNumber,
N: NumberSpace,
D: Domain,
[src]
T: RealNumber,
N: NumberSpace,
D: Domain,
fn sin(&mut self)
Calculates the sine of each element in radians. Read more
fn cos(&mut self)
Calculates the cosine of each element in radians. Read more
fn tan(&mut self)
Calculates the tangent of each element in radians.
fn asin(&mut self)
Calculates the principal value of the inverse sine of each element in radians.
fn acos(&mut self)
Calculates the principal value of the inverse cosine of each element in radians.
fn atan(&mut self)
Calculates the principal value of the inverse tangent of each element in radians.
fn sinh(&mut self)
Calculates the hyperbolic sine each element in radians.
fn cosh(&mut self)
Calculates the hyperbolic cosine each element in radians.
fn tanh(&mut self)
Calculates the hyperbolic tangent each element in radians.
fn asinh(&mut self)
Calculates the principal value of the inverse hyperbolic sine of each element in radians.
fn acosh(&mut self)
Calculates the principal value of the inverse hyperbolic cosine of each element in radians.
fn atanh(&mut self)
Calculates the principal value of the inverse hyperbolic tangent of each element in radians. Read more
impl<T, N, D> PowerOps<T> for Identifier<T, N, D> where
T: RealNumber,
N: NumberSpace,
D: Domain,
[src]
T: RealNumber,
N: NumberSpace,
D: Domain,
fn sqrt(&mut self)
Gets the square root of all vector elements. Read more
fn square(&mut self)
Squares all vector elements. Read more
fn root(&mut self, degree: T)
Calculates the n-th root of every vector element. Read more
fn powf(&mut self, exponent: T)
Raises every vector element to a floating point power. Read more
fn ln(&mut self)
Computes the principal value of natural logarithm of every element in the vector. Read more
fn exp(&mut self)
Calculates the natural exponential for every vector element. Read more
fn log(&mut self, base: T)
Calculates the logarithm to the given base for every vector element. Read more
fn expf(&mut self, base: T)
Calculates the exponential to the given base for every vector element. Read more
impl<T, N, D> RealOps for Identifier<T, N, D> where
T: RealNumber,
N: NumberSpace,
D: Domain,
[src]
T: RealNumber,
N: NumberSpace,
D: Domain,
impl<T, N, D> ComplexOps<T> for Identifier<T, N, D> where
T: RealNumber,
N: ComplexNumberSpace,
D: Domain,
[src]
T: RealNumber,
N: ComplexNumberSpace,
D: Domain,
fn multiply_complex_exponential(&mut self, a: T, b: T)
Multiplies each vector element with exp(j*(a*idx*self.delta() + b))
where a
and b
are arguments and idx
is the index of the data points in the vector ranging from 0 to self.points() - 1
. j
is the imaginary number and exp
the exponential function. Read more
fn conj(&mut self)
Calculates the complex conjugate of the vector. # Example Read more
impl<T, N, D> ElementaryOps<Identifier<T, N, D>, T, N, D> for Identifier<T, N, D> where
T: RealNumber,
N: NumberSpace,
D: Domain,
[src]
T: RealNumber,
N: NumberSpace,
D: Domain,
fn add(&mut self, summand: &Self) -> VoidResult
Calculates the sum of self + summand
. It consumes self and returns the result. # Failures TransRes may report the following ErrorReason
members: Read more
fn sub(&mut self, subtrahend: &Self) -> VoidResult
Calculates the difference of self - subtrahend
. It consumes self and returns the result. # Failures TransRes may report the following ErrorReason
members: Read more
fn mul(&mut self, factor: &Self) -> VoidResult
Calculates the product of self * factor
. It consumes self and returns the result. # Failures TransRes may report the following ErrorReason
members: Read more
fn div(&mut self, divisor: &Self) -> VoidResult
Calculates the quotient of self / summand
. It consumes self and returns the result. # Failures TransRes may report the following ErrorReason
members: Read more
impl<T, N, D> IdentifierOps for Identifier<T, N, D> where
T: RealNumber,
N: NumberSpace,
D: Domain,
[src]
T: RealNumber,
N: NumberSpace,
D: Domain,
fn domain(&self) -> DataDomain
The domain in which the data vector resides. Basically specifies the x-axis and the type of operations which are valid on this vector. Read more
fn is_complex(&self) -> bool
Indicates whether the vector contains complex data. This also specifies the type of operations which are valid on this vector. Read more
fn clone_from(&mut self, source: &Self)
Copies data from another vector.
fn add_points(&mut self)
Adds its length to the vector elements # Example Read more
fn sub_points(&mut self)
Subtracts its length from the vector elements # Example Read more
fn div_points(&mut self)
divides the vector elements by its length Subtracts its length from the vector elements # Example Read more
fn mul_points(&mut self)
Multiplies the vector elements with its length # Example Read more
impl<T, N, D> RealToComplexTransformsOps<T> for Identifier<T, N, D> where
Identifier<T, N, D>: ToComplexResult,
<Identifier<T, N, D> as ToComplexResult>::ComplexResult: RededicateForceOps<Identifier<T, N, D>>,
T: RealNumber,
N: RealNumberSpace,
D: Domain,
[src]
Identifier<T, N, D>: ToComplexResult,
<Identifier<T, N, D> as ToComplexResult>::ComplexResult: RededicateForceOps<Identifier<T, N, D>>,
T: RealNumber,
N: RealNumberSpace,
D: Domain,
fn to_complex(self) -> TransRes<Self::ComplexResult>
Converts the real vector into a complex vector. Read more
impl<T, N, D> ComplexToRealTransformsOps<T> for Identifier<T, N, D> where
Identifier<T, N, D>: ToRealResult,
<Identifier<T, N, D> as ToRealResult>::RealResult: RededicateForceOps<Identifier<T, N, D>>,
T: RealNumber,
N: ComplexNumberSpace,
D: Domain,
[src]
Identifier<T, N, D>: ToRealResult,
<Identifier<T, N, D> as ToRealResult>::RealResult: RededicateForceOps<Identifier<T, N, D>>,
T: RealNumber,
N: ComplexNumberSpace,
D: Domain,
fn magnitude(self) -> Self::RealResult
Gets the absolute value, magnitude or norm of all vector elements. # Example Read more
fn magnitude_squared(self) -> Self::RealResult
Gets the square root of the absolute value of all vector elements. # Example Read more
fn to_real(self) -> Self::RealResult
Gets all real elements. # Example Read more
fn to_imag(self) -> Self::RealResult
Gets all imag elements. # Example Read more
fn phase(self) -> Self::RealResult
Gets the phase of all elements in [rad]. # Example Read more
impl<T, N, D> Debug for Identifier<T, N, D> where
T: RealNumber,
D: Domain,
N: NumberSpace,
[src]
T: RealNumber,
D: Domain,
N: NumberSpace,