Skip to main content

MatrixView

Type Alias MatrixView 

Source
pub type MatrixView<'a, T> = MatrixBase<&'a [T]>;
Expand description

Represents a non-owning, 2-dimensional view of a contiguous block of memory, interpreted as a matrix in row-major order.

This type is useful for functions that need to read matrix data without taking ownership. By accepting a MatrixView, such functions can operate on both owned matrices (by converting them to a MatrixView) and existing non-owning views.

Aliased Typeยง

pub struct MatrixView<'a, T> { /* private fields */ }