Skip to main content

RMat

Type Alias RMat 

Source
pub type RMat<T> = Mat<T>;
Expand description

A real matrix.

Aliased Type§

pub struct RMat<T> {
    pub rows: usize,
    pub cols: usize,
    pub data: Vec<T>,
}

Fields§

§rows: usize

Number of rows.

§cols: usize

Number of columns.

§data: Vec<T>

Entries, row by row.

Implementations§

Source§

impl<T: Scalar> RMat<T>

Source

pub fn zeros(rows: usize, cols: usize) -> Self

A real matrix of zeros.

Source

pub fn matmul(&self, o: &Self) -> Result<Self>

Real matrix product.

Source

pub fn lift(m: &RMat<f64>) -> Self

Lift an f64 real matrix to this scalar type.