![]() |
Block-Structured AMR Software Framework
|
Lightweight non-owning CSR view that can point to host or device buffers. More...
#include <AMReX_CSR.H>
Public Types | |
| using | index_type = Index |
| using | CI = std::conditional_t< std::is_const_v< T >, Index const, Index > |
Public Attributes | |
| T *__restrict__ | mat = nullptr |
| CI *__restrict__ | col_index = nullptr |
| CI *__restrict__ | row_offset = nullptr |
| Long | nnz = 0 |
| Long | nrows = 0 |
Lightweight non-owning CSR view that can point to host or device buffers.
The template parameter T controls constness of the value array; the column/row arrays follow suit. Index is the type of both the column indices and the row offsets.
| using amrex::CsrView< T, Index >::CI = std::conditional_t<std::is_const_v<T>, Index const, Index> |
| using amrex::CsrView< T, Index >::index_type = Index |
| CI* __restrict__ amrex::CsrView< T, Index >::col_index = nullptr |
| T* __restrict__ amrex::CsrView< T, Index >::mat = nullptr |
| Long amrex::CsrView< T, Index >::nnz = 0 |
| Long amrex::CsrView< T, Index >::nrows = 0 |
| CI* __restrict__ amrex::CsrView< T, Index >::row_offset = nullptr |