Trait array_matrix::vector::div::VDiv

source ·
pub trait VDiv<Rhs>: Vectorwhere
    Self::Output: Vector,
{ type Output; fn div(&self, rhs: Rhs) -> Self::Output; }

Required Associated Types§

Required Methods§

Returns the vector-array divided by a scalar

u/b

Arguments
  • rhs - A scalar
Examples
let u = [1.0, 2.0];
let b = 2.0
let u_b = [u[0]/b, u[1]/b];
assert_eq!(u.div(b), u_b);

Implementations on Foreign Types§

Implementors§