|
| CSRMatrixSpan (const std::span< ValueType > &values, const std::span< IndexType > &colIdxs, const std::span< IndexType > &rowPtrs) |
| Constructor for CSRMatrixSpan.
|
|
| ~CSRMatrixSpan ()=default |
| Default destructor.
|
|
KOKKOS_INLINE_FUNCTION ValueType & | entry (const IndexType i, const IndexType j) const |
| Retrieve a reference to the matrix element at position (i,j).
|
|
KOKKOS_INLINE_FUNCTION ValueType & | entry (const IndexType offset) const |
| Direct access to a value given the offset.
|
|
std::tuple< std::span< ValueType >, std::span< IndexType >, std::span< IndexType > > | span () |
| Returns a structured binding of all containers.
|
|
template<typename ValueType, typename IndexType>
class NeoFOAM::la::CSRMatrixSpan< ValueType, IndexType >
A helper class to allow easy read/write on all executors.
- Template Parameters
-
ValueType | The type of the underlying CSR matrix elements. |
IndexType | The type of the indexes. |
Definition at line 20 of file CSRMatrix.hpp.