pub trait IsAnalytic: IsLinearOperatable {
// Required methods
fn f_conj(&self) -> Self;
fn f_exp(&self) -> Self;
fn f_ln(&self) -> Self;
fn f_powf(&self, n: f64) -> Self;
fn f_powi(&self, n: i32) -> Self;
fn f_abs(&self) -> f64;
fn f_arg(&self) -> f64;
fn f_abs2(&self) -> f64;
fn f_scale(&self, factor: f64) -> Self;
fn to_complex(&self) -> Complex<f64>;
fn from_complex(value: Complex<f64>) -> Self
where Self: Sized;
}Expand description
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.
Required Methods§
fn f_conj(&self) -> Self
fn f_exp(&self) -> Self
fn f_ln(&self) -> Self
fn f_powf(&self, n: f64) -> Self
fn f_powi(&self, n: i32) -> Self
fn f_abs(&self) -> f64
fn f_arg(&self) -> f64
fn f_abs2(&self) -> f64
fn f_scale(&self, factor: f64) -> Self
fn to_complex(&self) -> Complex<f64>
fn from_complex(value: Complex<f64>) -> Selfwhere
Self: Sized,
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".