|
NEML2 2.0.0
|
Helper to assemble a matrix of tensors into a single tensor and also to split a tensor into a map of map of tensors. More...
Helper to assemble a matrix of tensors into a single tensor and also to split a tensor into a map of map of tensors.
#include <Assembler.h>
Public Member Functions | |
| MatrixAssembler (const LabeledAxis &yaxis, const LabeledAxis &xaxis) | |
| Tensor | assemble_by_variable (const DerivMap &, bool assembly=true) const |
| DerivMap | split_by_variable (const Tensor &, bool assembly=true) const |
| DerivMap | split_by_subaxis (const Tensor &) const |
| Split the matrix (by subaxes) | |
| const LabeledAxis & | yaxis () const |
| Get the y-axis used for assembly/splitting. | |
| const LabeledAxis & | xaxis () const |
| Get the x-axis used for assembly/splitting. | |
|
inline |
Assemble a matrix of matrices (by variables) assembly indicates whether the variables are in assembly format
| std::map< SubaxisName, std::map< SubaxisName, Tensor > > split_by_subaxis | ( | const Tensor & | tensor | ) | const |
Split the matrix (by subaxes)
Split the matrix (by variables) assembly indicates whether the split variables are returned in assembly format
|
inline |
Get the x-axis used for assembly/splitting.
|
inline |
Get the y-axis used for assembly/splitting.