![]() |
Blaze
3.6
|
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 specific elements 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.
It is also possible to create nested views (compound views), such as for instance bands of submatrices or row selections on column selections. A compound view also acts as reference to specific elements of the underlying vector or matrix and is valid as long as the underlying, referenced vector or matrix is not resized or entirely destroyed.
The Blaze library provides the following views on vectors and matrices:
Vector views:
Matrix views:
Previous: Triangular Matrices Next: Subvectors