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