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 &) const |
Assemble a matrix of matrices (by variables) | |
DerivMap | split_by_variable (const Tensor &) const |
Split the matrix (by variables) | |
DerivMap | split_by_subaxis (const Tensor &) const |
Split the matrix (by subaxes) | |
|
inline |
Assemble a matrix of matrices (by variables)
std::map< SubaxisName, std::map< SubaxisName, Tensor > > split_by_subaxis | ( | const Tensor & | tensor | ) | const |
Split the matrix (by subaxes)