27#include "neml2/equation_systems/AxisLayout.h"
28#include "neml2/tensors/Tensor.h"
Scalar.
Definition Scalar.h:38
Definition DiagnosticsInterface.h:31
AssembledMatrix operator-(const AssembledMatrix &)
unary negation
AssembledMatrix operator*(const AssembledMatrix &, const AssembledMatrix &)
Matrix-matrix product.
Scalar norm_sq(const AssembledVector &)
squared-norm
AssembledMatrix operator+(const AssembledMatrix &, const AssembledMatrix &)
binary addition
c10::TensorOptions TensorOptions
Definition types.h:66
Scalar norm(const AssembledVector &)
norm
Dense representation of a tensor assembled from a list of tensors and their layout.
Definition AssembledVector.h:36
AssembledVector(AxisLayout)
AxisLayout layout
Layout of the tensors.
Definition AssembledVector.h:53
std::vector< Tensor > tensors
Assembled tensors for each variable group.
Definition AssembledVector.h:51
AssembledVector()=default
SparseVector disassemble() const
Disassemble the tensors for each variable group.
AssembledVector(AxisLayout, std::vector< Tensor >)
AssembledVector group(std::size_t) const
Contiguous view of the sparse vector.
TensorOptions options() const
Tensor options.
Definition AxisLayout.h:34
Sparse representation of a vector consisting of a list of tensors and their layout.
Definition SparseVector.h:36