pub trait Exponential: OperatorNorm + AddAssign<Self> + Onewhere
    Self::Scalar: BaseFloat,
{ fn exp(self) -> Self { ... } }
Expand description

calculate exponential value

Provided Methods§

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);

Implementors§