[][src]Trait aljabar::One

pub trait One {
    fn one() -> Self;
fn is_one(&self) -> bool; }

Defines the multiplicative identity element for Self.

For Matrices, one is an alias for the unit matrix.

Required methods

fn one() -> Self

Returns the multiplicative identity for Self.

fn is_one(&self) -> bool

Returns true if the value is the multiplicative identity.

Loading content...

Implementations on Foreign Types

impl One for bool[src]

impl One for f32[src]

impl One for f64[src]

impl One for i8[src]

impl One for i16[src]

impl One for i32[src]

impl One for i64[src]

impl One for i128[src]

impl One for isize[src]

impl One for u8[src]

impl One for u16[src]

impl One for u32[src]

impl One for u64[src]

impl One for u128[src]

impl One for usize[src]

Loading content...

Implementors

impl<T, const N: usize> One for Matrix<T, { N }, { N }> where
    T: Zero + One + Clone,
    Self: PartialEq<Self> + SquareMatrix<T, { N }>, 
[src]

Constructs a unit matrix.

Loading content...