Type Definition RMatrix
extendr_api::matrix
type RMatrix<T> = RArray<T, [usize; 2]>;
impl<T> RMatrix<T>
pub fn new(data: T, nrows: usize, ncols: usize) -> Self
Create a new matrix wrapper.
pub fn nrows(&self) -> usize
Get the number of rows.
pub fn ncols(&self) -> usize
Get the number of columns.