|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Aleph::mdspan as a zero-copy 2D "matrix" view over a flat buffer.
More...
Go to the source code of this file.
Functions | |
| int | main () |
Aleph::mdspan as a zero-copy 2D "matrix" view over a flat buffer.
Aleph::mdspan never owns memory: it is a pointer plus a shape. This example walks through the case that motivates it most directly — numerical code that already works with a flat, contiguous buffer (Array<T>, std::vector<T>, a T* from a C library, ...) and wants readable m(row, col) indexing without transposing or copying anything.
Aleph::layout_left) without moving a single byte — useful when interfacing with Fortran/BLAS-style routines that expect that layout.mdspan<const T, ...> exposes a buffer for reading without allowing the view to mutate it. Definition in file mdspan_matrix_view_example.cc.
| int main | ( | void | ) |
Definition at line 125 of file mdspan_matrix_view_example.cc.
References Aleph::blossom_maximum_cardinality_matching().