21template<
typename IndexType>
25 void validate()
const;
39 colIdxs_.copyToExecutor(dstExec), rowOffs_.copyToExecutor(dstExec), dimensions_
61 [[nodiscard]]
localIdx nnz()
const {
return colIdxs_.size(); };
MixinClass signaling copyTo is supported.
An executor-aware contiguous container for numerical data with vector-style arithmetic semantics.
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.