Type Definition extendr_api::matrix::RMatrix[][src]

type RMatrix<T> = RArray<T, [usize; 2]>;

Implementations

impl<T> RMatrix<T>[src]

pub fn new(data: T, nrows: usize, ncols: usize) -> Self[src]

Create a new matrix wrapper.

pub fn nrows(&self) -> usize[src]

Get the number of rows.

pub fn ncols(&self) -> usize[src]

Get the number of columns.