|
NEML2 2.1.0
|
Dense representation of a tensor assembled from a list of tensors and their layout. More...
Dense representation of a tensor assembled from a list of tensors and their layout.
#include <AssembledVector.h>
Public Member Functions | |
| AssembledVector ()=default | |
| AssembledVector (AxisLayout) | |
| AssembledVector (AxisLayout, std::vector< Tensor >) | |
| TensorOptions | options () const |
| Tensor options. | |
| AssembledVector | group (std::size_t) const |
| Contiguous view of the sparse vector. | |
| SparseVector | disassemble () const |
| Disassemble the tensors for each variable group. | |
Public Attributes | |
| std::vector< Tensor > | tensors |
| Assembled tensors for each variable group. | |
| AxisLayout | layout |
| Layout of the tensors. | |
|
default |
| AssembledVector | ( | AxisLayout | ) |
| AssembledVector | ( | AxisLayout | , |
| std::vector< Tensor > | ) |
| SparseVector disassemble | ( | ) | const |
Disassemble the tensors for each variable group.
| AssembledVector 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 |
Assembled tensors for each variable group.