MathOps

Trait MathOps 

Source
pub trait MathOps<T> {
    // Required methods
    fn abs(&self) -> Self;
    fn norm(&self) -> Self;
    fn exp(&self) -> Self;
    fn log(&self) -> Self;
    fn sqrt(&self) -> Self;
    fn conj(&self) -> Self;
    fn real(&self) -> Self;
    fn imag(&self) -> Self;
}
Expand description

Mathematical functions for expressions

Required Methods§

Source

fn abs(&self) -> Self

Source

fn norm(&self) -> Self

Source

fn exp(&self) -> Self

Source

fn log(&self) -> Self

Source

fn sqrt(&self) -> Self

Source

fn conj(&self) -> Self

Source

fn real(&self) -> Self

Source

fn imag(&self) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§