Block-Structured AMR Software Framework
Loading...
Searching...
No Matches
amrex::CsrView< T > Struct Template Reference

Lightweight non-owning CSR view that can point to host or device buffers. More...

#include <AMReX_CSR.H>

Public Types

using U = std::conditional_t< std::is_const_v< T >, Long const, Long >
 

Public Attributes

T *__restrict__ mat = nullptr
 
U *__restrict__ col_index = nullptr
 
U *__restrict__ row_offset = nullptr
 
Long nnz = 0
 
Long nrows = 0
 

Detailed Description

template<typename T>
struct amrex::CsrView< T >

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.

Member Typedef Documentation

◆ U

template<typename T >
using amrex::CsrView< T >::U = std::conditional_t<std::is_const_v<T>, Long const, Long>

Member Data Documentation

◆ col_index

template<typename T >
U* __restrict__ amrex::CsrView< T >::col_index = nullptr

◆ mat

template<typename T >
T* __restrict__ amrex::CsrView< T >::mat = nullptr

◆ nnz

template<typename T >
Long amrex::CsrView< T >::nnz = 0

◆ nrows

template<typename T >
Long amrex::CsrView< T >::nrows = 0

◆ row_offset

template<typename T >
U* __restrict__ amrex::CsrView< T >::row_offset = nullptr

The documentation for this struct was generated from the following file: