Type Alias faer_core::MatScale

source ·
pub type MatScale<E> = Matrix<Scale<E>>;
Expand description

Wrapper around a scalar value that allows scalar multiplication by matrices.

Aliased Type§

struct MatScale<E> { /* private fields */ }

Implementations§

source§

impl<E: Entity> MatScale<E>

source

pub fn new(value: E) -> Self

Returns a new scaling factor with the given value.

source

pub fn value(self) -> E

Returns the value of the scaling factor.