NEML2 2.0.0
Loading...
Searching...
No Matches
MatrixAssembler Class Reference

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...

Detailed Description

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)
 

Constructor & Destructor Documentation

◆ MatrixAssembler()

MatrixAssembler ( const LabeledAxis & yaxis,
const LabeledAxis & xaxis )
inline

Member Function Documentation

◆ assemble_by_variable()

Tensor assemble_by_variable ( const DerivMap & vals_dict) const

Assemble a matrix of matrices (by variables)

◆ split_by_subaxis()

std::map< SubaxisName, std::map< SubaxisName, Tensor > > split_by_subaxis ( const Tensor & tensor) const

Split the matrix (by subaxes)

◆ split_by_variable()

DerivMap split_by_variable ( const Tensor & tensor) const

Split the matrix (by variables)