Trait array_matrix::matrix::div::MDiv

source ·
pub trait MDiv<Rhs>: Matrixwhere
    Self::Output: Matrix,
{ type Output; fn div(self, rhs: Rhs) -> Self::Output; }

Required Associated Types§

Required Methods§

Returns matrix divided by a scalar

A/b

Arguments
  • rhs - A scalar
Examples
let a = [
    [1.0, 2.0],
    [3.0, 4.0]
];
let b = 2.0;
let a_b = [
    [0.5, 1.0],
    [1.5, 2.0]
];
assert_eq!(a.div(b), a_b)

Implementations on Foreign Types§

Implementors§