Module mat

Source
Expand description

Matrix view creation module.

Functions§

from_column_major_slice
Creates a MatRef from slice views over the matrix data, and the matrix dimensions. The data is interpreted in a column-major format, so that the first chunk of nrows values from the slices goes in the first column of the matrix, the second chunk of nrows values goes in the second column, and so on.
from_column_major_slice_mut
Creates a MatMut from slice views over the matrix data, and the matrix dimensions. The data is interpreted in a column-major format, so that the first chunk of nrows values from the slices goes in the first column of the matrix, the second chunk of nrows values goes in the second column, and so on.
from_column_major_slice_with_stride
Creates a MatRef from slice views over the matrix data, and the matrix dimensions. The data is interpreted in a column-major format, where the beginnings of two consecutive columns are separated by col_stride elements.
from_column_major_slice_with_stride_mut
Creates a MatMut from slice views over the matrix data, and the matrix dimensions. The data is interpreted in a column-major format, where the beginnings of two consecutive columns are separated by col_stride elements.
from_raw_parts
Creates a MatRef from pointers to the matrix data, dimensions, and strides.
from_raw_parts_mut
Creates a MatMut from pointers to the matrix data, dimensions, and strides.
from_row_major_slice
Creates a MatRef from slice views over the matrix data, and the matrix dimensions. The data is interpreted in a row-major format, so that the first chunk of ncols values from the slices goes in the first column of the matrix, the second chunk of ncols values goes in the second column, and so on.
from_row_major_slice_mut
Creates a MatMut from slice views over the matrix data, and the matrix dimensions. The data is interpreted in a row-major format, so that the first chunk of ncols values from the slices goes in the first column of the matrix, the second chunk of ncols values goes in the second column, and so on.