27#include "neml2/equation_systems/AxisLayout.h"
28#include "neml2/tensors/Tensor.h"
Definition DiagnosticsInterface.h:31
AssembledMatrix operator-(const AssembledMatrix &)
unary negation
AssembledMatrix operator*(const AssembledMatrix &, const AssembledMatrix &)
Matrix-matrix product.
AssembledMatrix operator+(const AssembledMatrix &, const AssembledMatrix &)
binary addition
c10::TensorOptions TensorOptions
Definition types.h:66
Dense representation of a matrix assembled from a 2D-list of tensors and their layout.
Definition AssembledMatrix.h:37
AssembledMatrix()=default
AssembledMatrix(AxisLayout, AxisLayout)
AxisLayout row_layout
Row layout of the tensors.
Definition AssembledMatrix.h:53
AssembledMatrix group(std::size_t, std::size_t) const
A block of the assembled matrix corresponding to row group i and column group j.
AxisLayout col_layout
Column layout of the tensors.
Definition AssembledMatrix.h:55
std::vector< std::vector< Tensor > > tensors
Assembled tensors for each block of the matrix.
Definition AssembledMatrix.h:51
AssembledMatrix(AxisLayout, AxisLayout, std::vector< std::vector< Tensor > >)
TensorOptions options() const
Tensor options.
SparseMatrix disassemble() const
Disassemble into a 2D-list of tensors.
Dense representation of a tensor assembled from a list of tensors and their layout.
Definition AssembledVector.h:36
Definition AxisLayout.h:34
Sparse representation of a matrix consisting of a 2D-list of tensors and their layout.
Definition SparseMatrix.h:36