|
NEML2 2.1.0
|
Sparse representation of a matrix consisting of a 2D-list of tensors and their layout. More...
Sparse representation of a matrix consisting of a 2D-list of tensors and their layout.
#include <SparseMatrix.h>
Public Member Functions | |
| SparseMatrix ()=default | |
| SparseMatrix (AxisLayout, AxisLayout) | |
| SparseMatrix (AxisLayout, AxisLayout, std::vector< std::vector< Tensor > >) | |
| TensorOptions | options () const |
| Tensor options. | |
| SparseMatrix | group (std::size_t, std::size_t) const |
| Semi-contiguous view of a block of the sparse matrix. | |
| AssembledMatrix | assemble () const |
| Assemble into a Tensor with two base dimensions. | |
Public Attributes | |
| std::vector< std::vector< Tensor > > | tensors |
| 2D-list of tensors | |
| AxisLayout | row_layout |
| Row layout of the tensors. | |
| AxisLayout | col_layout |
| Column layout of the tensors. | |
|
default |
| SparseMatrix | ( | AxisLayout | , |
| AxisLayout | ) |
| SparseMatrix | ( | AxisLayout | , |
| AxisLayout | , | ||
| std::vector< std::vector< Tensor > > | ) |
| AssembledMatrix assemble | ( | ) | const |
Assemble into a Tensor with two base dimensions.
| SparseMatrix group | ( | std::size_t | , |
| std::size_t | ) const |
Semi-contiguous view of a block of the sparse matrix.
| TensorOptions options | ( | ) | const |
Tensor options.
| AxisLayout col_layout |
Column layout of the tensors.
| AxisLayout row_layout |
Row layout of the tensors.
| std::vector<std::vector<Tensor> > tensors |
2D-list of tensors