|
NEML2 2.1.0
|
Sparse representation of a vector consisting of a list of tensors and their layout. More...
Sparse representation of a vector consisting of a list of tensors and their layout.
#include <SparseVector.h>
Public Member Functions | |
| SparseVector ()=default | |
| SparseVector (AxisLayout) | |
| SparseVector (AxisLayout, std::vector< Tensor >) | |
| TensorOptions | options () const |
| Tensor options. | |
| SparseVector | group (std::size_t) const |
| Contiguous view of the sparse vector. | |
| AssembledVector | assemble () const |
| Assemble the tensors for each variable group. | |
Public Attributes | |
| std::vector< Tensor > | tensors |
| List of tensors. | |
| AxisLayout | layout |
| Layout of the tensors. | |
|
default |
| SparseVector | ( | AxisLayout | ) |
| SparseVector | ( | AxisLayout | , |
| std::vector< Tensor > | ) |
| AssembledVector assemble | ( | ) | const |
Assemble the tensors for each variable group.
| SparseVector group | ( | std::size_t | ) | const |
Contiguous view of the sparse vector.
| TensorOptions options | ( | ) | const |
Tensor options.
| AxisLayout layout |
Layout of the tensors.
| std::vector<Tensor> tensors |
List of tensors.