![]() |
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 = I |
| using | CI = std::conditional_t< std::is_const_v< T >, I const, I > |
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. I is the type of both the column indices and the row offsets.
| using amrex::CsrView< T, I >::CI = std::conditional_t<std::is_const_v<T>, I const, I> |
| using amrex::CsrView< T, I >::index_type = I |
| CI* __restrict__ amrex::CsrView< T, I >::col_index = nullptr |
| T* __restrict__ amrex::CsrView< T, I >::mat = nullptr |
| Long amrex::CsrView< T, I >::nnz = 0 |
| Long amrex::CsrView< T, I >::nrows = 0 |
| CI* __restrict__ amrex::CsrView< T, I >::row_offset = nullptr |