|
guanaqo
1.0.0-alpha.27
Utilities for scientific software
|
#include <guanaqo/linalg/matrix-view.hpp>
Non-owning view of dense and various formats of sparse matrix.
Definition at line 15 of file matrix-view.hpp.
Public Types | |
| using | Sparsity = sparsity::Sparsity |
| Description of sparsity format. | |
Public Member Functions | |
| MatrixView () | |
| Constructs an empty 0×0 dense matrix. | |
| MatrixView (std::span< const T > values, Sparsity sparsity) | |
| General constructor from flattened values and view of the sparsity pattern. | |
| MatrixView (std::span< const T > values, length_t rows, length_t cols, sparsity::Symmetry symmetry=sparsity::Symmetry::Unsymmetric) | |
| Dense matrix constructor (column-major). | |
Public Attributes | |
| std::span< const T > | values |
| Non-owning view of the flattened array of (column-major) values. | |
| Sparsity | sparsity |
| Non-owning view of the sparsity pattern of the matrix. | |
| using guanaqo::linalg::MatrixView< T >::Sparsity = sparsity::Sparsity |
Description of sparsity format.
Definition at line 17 of file matrix-view.hpp.
|
inline |
Constructs an empty 0×0 dense matrix.
Definition at line 20 of file matrix-view.hpp.
|
inline |
General constructor from flattened values and view of the sparsity pattern.
| values | View of flattened array of (column-major) values. |
| sparsity | View of the sparsity pattern (dense, CSC or COO). |
Definition at line 25 of file matrix-view.hpp.
|
inline |
Dense matrix constructor (column-major).
| values | View of flattened array of (column-major) values. |
| rows | Number of rows. |
| cols | Number of cols. |
| symmetry | Symmetry of the matrix. |
Definition at line 32 of file matrix-view.hpp.
| std::span<const T> guanaqo::linalg::MatrixView< T >::values |
Non-owning view of the flattened array of (column-major) values.
Definition at line 37 of file matrix-view.hpp.
| Sparsity guanaqo::linalg::MatrixView< T >::sparsity |
Non-owning view of the sparsity pattern of the matrix.
Definition at line 39 of file matrix-view.hpp.