|
NEML2 2.1.0
|
Dense representation of a matrix assembled from a 2D-list of tensors and their layout. More...
Dense representation of a matrix assembled from a 2D-list of tensors and their layout.
#include <AssembledMatrix.h>
Public Member Functions | |
| AssembledMatrix ()=default | |
| AssembledMatrix (AxisLayout, AxisLayout) | |
| AssembledMatrix (AxisLayout, AxisLayout, std::vector< std::vector< Tensor > >) | |
| TensorOptions | options () const |
| Tensor options. | |
| AssembledMatrix | group (std::size_t, std::size_t) const |
| A block of the assembled matrix corresponding to row group i and column group j. | |
| SparseMatrix | disassemble () const |
| Disassemble into a 2D-list of tensors. | |
Public Attributes | |
| std::vector< std::vector< Tensor > > | tensors |
| Assembled tensors for each block of the matrix. | |
| AxisLayout | row_layout |
| Row layout of the tensors. | |
| AxisLayout | col_layout |
| Column layout of the tensors. | |
|
default |
| AssembledMatrix | ( | AxisLayout | , |
| AxisLayout | ) |
| AssembledMatrix | ( | AxisLayout | , |
| AxisLayout | , | ||
| std::vector< std::vector< Tensor > > | ) |
| SparseMatrix disassemble | ( | ) | const |
Disassemble into a 2D-list of tensors.
| AssembledMatrix group | ( | std::size_t | , |
| std::size_t | ) const |
A block of the assembled matrix corresponding to row group i and column group j.
| 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 |
Assembled tensors for each block of the matrix.