Skip to main content

IsAnalytic

Trait IsAnalytic 

Source
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§

Source

fn f_conj(&self) -> Self

Source

fn f_exp(&self) -> Self

Source

fn f_ln(&self) -> Self

Source

fn f_powf(&self, n: f64) -> Self

Source

fn f_powi(&self, n: i32) -> Self

Source

fn f_abs(&self) -> f64

Source

fn f_arg(&self) -> f64

Source

fn f_abs2(&self) -> f64

Source

fn f_scale(&self, factor: f64) -> Self

Source

fn to_complex(&self) -> Complex<f64>

Source

fn from_complex(value: Complex<f64>) -> Self
where Self: Sized,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IsAnalytic for Complex<f64>

Source§

fn f_conj(&self) -> Self

Source§

fn f_exp(&self) -> Self

Source§

fn f_ln(&self) -> Self

Source§

fn f_powf(&self, n: f64) -> Self

Source§

fn f_powi(&self, n: i32) -> Self

Source§

fn f_abs(&self) -> f64

Source§

fn f_arg(&self) -> f64

Source§

fn f_abs2(&self) -> f64

Source§

fn f_scale(&self, factor: f64) -> Self

Source§

fn to_complex(&self) -> Complex<f64>

Source§

fn from_complex(value: Complex<f64>) -> Self
where Self: Sized,

Source§

impl IsAnalytic for f64

Source§

fn f_conj(&self) -> Self

Source§

fn f_exp(&self) -> Self

Source§

fn f_ln(&self) -> Self

Source§

fn f_powf(&self, n: f64) -> Self

Source§

fn f_powi(&self, n: i32) -> Self

Source§

fn f_abs(&self) -> f64

Source§

fn f_abs2(&self) -> f64

Source§

fn f_arg(&self) -> f64

Source§

fn f_scale(&self, factor: f64) -> Self

Source§

fn to_complex(&self) -> Complex<f64>

Source§

fn from_complex(value: Complex<f64>) -> Self
where Self: Sized,

Implementors§