21template<
typename IndexType>
25 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
const Vector< IndexType > & rowOffs() const
CsrSparsityPattern(const CsrSparsityPattern &sp)
IndexType SparsityIndexType
CsrSparsityPattern(Vector< IndexType > &&colIdx, Vector< IndexType > &&rowOffs, Dimensions dim)
const Vector< IndexType > & colIdxs() const
Vector< IndexType > & colIdxs()
Dimensions dimension() const
~CsrSparsityPattern()=default
Vector< IndexType > & rowOffs()
SparsityView< IndexType > view() const
Get a view representation of the matrix's data.
CsrSparsityPattern copyToExecutor(Executor dstExec) const override
const Executor & exec() const
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.