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

Detailed Description

Dense matrix assembled from a 2D list of tensors and their layout

Public Member Functions

AssembledMatrix __add__ (self, AssembledMatrix arg0)
None __init__ (self)
None __init__ (self, AxisLayout row_layout, AxisLayout col_layout)
None __init__ (self, AxisLayout row_layout, AxisLayout col_layout, list[list[neml2.tensors.Tensor]] tensors)
AssembledMatrix __mul__ (self, AssembledMatrix arg0)
AssembledVector __mul__ (self, AssembledVector arg0)
AssembledMatrix __neg__ (self)
AssembledMatrix __sub__ (self, AssembledMatrix arg0)
SparseMatrix disassemble (self)
AssembledMatrix group (self, int i, int j)
AxisLayout col_layout (self)
None col_layout (self, AxisLayout arg0)
AxisLayout row_layout (self)
None row_layout (self, AxisLayout arg0)
list[list[neml2.tensors.Tensor]] tensors (self)
None tensors (self, list[list[neml2.tensors.Tensor]] arg0)

Constructor & Destructor Documentation

◆ __init__() [1/3]

None __init__ ( self)

◆ __init__() [2/3]

None __init__ ( self,
AxisLayout row_layout,
AxisLayout col_layout )

◆ __init__() [3/3]

None __init__ ( self,
AxisLayout row_layout,
AxisLayout col_layout,
list[list[neml2.tensors.Tensor]] tensors )

Member Function Documentation

◆ __add__()

AssembledMatrix __add__ ( self,
AssembledMatrix arg0 )

◆ __mul__() [1/2]

AssembledMatrix __mul__ ( self,
AssembledMatrix arg0 )

◆ __mul__() [2/2]

AssembledVector __mul__ ( self,
AssembledVector arg0 )

◆ __neg__()

AssembledMatrix __neg__ ( self)

◆ __sub__()

AssembledMatrix __sub__ ( self,
AssembledMatrix arg0 )

◆ col_layout() [1/2]

AxisLayout col_layout ( self)
Column layout of the tensors

◆ col_layout() [2/2]

None col_layout ( self,
AxisLayout arg0 )

◆ disassemble()

SparseMatrix disassemble ( self)
Disassemble into a SparseMatrix

◆ group()

AssembledMatrix group ( self,
int i,
int j )
Block (i, j) of the assembled matrix

◆ row_layout() [1/2]

AxisLayout row_layout ( self)
Row layout of the tensors

◆ row_layout() [2/2]

None row_layout ( self,
AxisLayout arg0 )

◆ tensors() [1/2]

list[list[neml2.tensors.Tensor]] tensors ( self)
Assembled tensors, indexed by [row group][col group]

◆ tensors() [2/2]

None tensors ( self,
list[list[neml2.tensors.Tensor]] arg0 )