![]() |
Views represents parts of a vector or matrix, such as a subvector, a submatrix, or a specific row, column, or band of a matrix. As such, views act as a reference to a specific part of a vector or matrix. This reference is valid and can be used in every way as any other vector or matrix can be used as long as the referenced vector or matrix is not resized or entirely destroyed. Views also act as alias to the elements of the vector or matrix: Changes made to the elements (e.g. modifying values, inserting or erasing elements) via the view are immediately visible in the vector or matrix and changes made via the vector or matrix are immediately visible in the view.
The Blaze library provides the following views on vectors and matrices:
Vector views:
Matrix views:
Previous: Triangular Matrices Next: Subvectors