29template<
typename IndexType>
42 KOKKOS_INLINE_FUNCTION
43 IndexType
entry(
const IndexType i,
const IndexType j)
const
46 for (std::remove_const_t<IndexType> ic = 0; ic < rowSize; ++ic)
48 const IndexType localCol =
rowOffs[i] + ic;
53 if (
colIdxs[localCol] > j)
break;
55 Kokkos::abort(
"Memory not allocated for CSR matrix component.");
hold the number of rows and columns of a matrix
A view struct to allow easy read/write on all executors.
View< const IndexType > colIdxs
SparsityView(View< const IndexType > colIdxsView, View< const IndexType > rowOffsView)
KOKKOS_INLINE_FUNCTION IndexType entry(const IndexType i, const IndexType j) const
Retrieve a reference to the matrix element at position (i,j).
View< const IndexType > rowOffs