NEML2 2.1.0
Loading...
Searching...
No Matches
AssembledMatrix Struct Reference

Dense representation of a matrix assembled from a 2D-list of tensors and their layout. More...

Detailed Description

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.

Constructor & Destructor Documentation

◆ AssembledMatrix() [1/3]

AssembledMatrix ( )
default

◆ AssembledMatrix() [2/3]

AssembledMatrix ( AxisLayout ,
AxisLayout  )

◆ AssembledMatrix() [3/3]

AssembledMatrix ( AxisLayout ,
AxisLayout ,
std::vector< std::vector< Tensor > >  )

Member Function Documentation

◆ disassemble()

SparseMatrix disassemble ( ) const

Disassemble into a 2D-list of tensors.

◆ group()

AssembledMatrix group ( std::size_t ,
std::size_t  ) const

A block of the assembled matrix corresponding to row group i and column group j.

◆ options()

TensorOptions options ( ) const

Tensor options.

Member Data Documentation

◆ col_layout

AxisLayout col_layout

Column layout of the tensors.

◆ row_layout

AxisLayout row_layout

Row layout of the tensors.

◆ tensors

std::vector<std::vector<Tensor> > tensors

Assembled tensors for each block of the matrix.