Skip to main content

Module traits

Module traits 

Source
Expand description

This module defines common types, traits, and error handling for the library.

Traits§

FromComplex64
Trait for reconstructing a value from a Complex<f64> representation. This complements IsAnalytic::to_complex() for generic FFT-based routines.
IsAnalytic
The IsAnalytic trait extends the IsLinearOperatable trait with additional operations that are specific to analytic functions, such as complex conjugation, exponentiation, logarithm, power functions, and magnitude/phase calculations. This trait is implemented for both real and complex types, allowing us to perform a wide range of mathematical operations on these types in a consistent manner throughout the library.
IsLinearOperatable
The IsLinearOperatable trait defines a set of operations that must be supported by any type that can be used in linear operations, such as addition, subtraction, multiplication, division, and negation. This trait is implemented for common numeric types such as f64, f32, Complex<f64>, Complex<f32>, and various integer types, allowing them to be used in linear operations throughout the library.

Type Aliases§

C1D
C2D
R1D
These are 1D vector types for real and complex data, along with their view types. They provide convenient aliases for working with 1D arrays of real and complex numbers throughout the library, allowing us to write more concise and readable code when dealing with these common data structures.
R2D
These are 2D array types for real and complex data, along with their view types. They provide convenient aliases for working with 2D arrays of real and complex numbers throughout the library, allowing us to write more concise and readable code when dealing with these common data structures.
VC1D
VC2D
VR1D
VR2D