Exponential

Trait Exponential 

Source
pub trait Exponential:
    OperatorNorm
    + AddAssign<Self>
    + One
where Self::Scalar: BaseFloat,
{ // Provided method fn exp(self) -> Self { ... } }
Expand description

calculate exponential value

Provided Methods§

Source

fn exp(self) -> Self

calculate exponential

§Examples
use cgmath::*;
use matext4cgmath::*;

let x = Matrix2::new(0.0, 1.0, -1.0, 0.0);
let res = x.exp();
let ans = Matrix2::from_angle(Rad(1.0));
assert!((res - ans).norm_l1() < 1.0e-10);

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.

Implementations on Foreign Types§

Source§

impl<F: BaseFloat> Exponential for Matrix2<F>

Source§

impl<F: BaseFloat> Exponential for Matrix3<F>

Source§

impl<F: BaseFloat> Exponential for Matrix4<F>

Implementors§