22template<
typename IndexType>
26 void validate()
const;
MixinClass signaling copyTo is supported.
A class to contain the data and executors for a field and define some basic operations.
localIdx size() const
Gets the size of the field.
Vector< ValueType > copyToExecutor(Executor dstExec) const
Copies the data to a new field on a specific executor.
const Executor & exec() const
Gets the executor associated with the field.
View< ValueType > view() &&=delete
row and column index representation of a mesh
Vector< IndexType > & rowOffs()
returns the non-const COO per-entry row indices (one per nnz)
SparsityView< IndexType > view() const
Get a view representation of the matrix's data.
Vector< IndexType > & rowIdxs()
returns the non-const COO per-entry row indices (one per nnz)
const Vector< IndexType > & rowOffs() const
returns the COO per-entry row indices (one per nnz)
CooSparsityPattern(const CooSparsityPattern &sp)
create an "empty" SparsityPattern with a given size
~CooSparsityPattern()=default
const Vector< IndexType > & colIdxs() const
const getter for colIdxs
CooSparsityPattern(Vector< IndexType > &&colIdx, Vector< IndexType > &&rowIdxs, Dimensions dim)
Vector< IndexType > & colIdxs()
getter for colIdxs
Dimensions dimension() const
CooSparsityPattern copyToExecutor(Executor dstExec) const override
IndexType SparsityIndexType
const Executor & exec() const
getter for executor
const Vector< IndexType > & rowIdxs() const
returns the COO per-entry row indices (one per nnz)
std::variant< SerialExecutor, CPUExecutor, GPUExecutor > Executor
hold the number of rows and columns of a matrix
A view struct to allow easy read/write on all executors.