Trait scirust::matrix::traits::NumberMatrix [] [src]

pub trait NumberMatrix<T: CommutativeMonoidAddPartial + CommutativeMonoidMulPartial>: Shape<T> + MatrixBuffer<T> {
    fn is_identity(&self) -> bool;
    fn is_diagonal(&self) -> bool;
    fn is_lt(&self) -> bool;
    fn is_ut(&self) -> bool;
    fn is_symmetric(&self) -> bool;
    fn trace(&self) -> T;

    fn is_triangular(&self) -> bool { ... }
}

Defines a set of basic methods implemented by matrices of numbers

Required Methods

fn is_identity(&self) -> bool

Returns if the matrix is an identity matrix

fn is_diagonal(&self) -> bool

Returns if the matrix is a diagonal matrix

fn is_lt(&self) -> bool

Returns if the matrix is lower triangular

fn is_ut(&self) -> bool

Returns if the matrix is upper triangular

fn is_symmetric(&self) -> bool

Returns if the matrix is symmetric

fn trace(&self) -> T

Returns the trace of the matrix

Provided Methods

fn is_triangular(&self) -> bool

Returns if the matrix is triangular

Implementors