Owning CSR container backed by AMReX resizable vectors.
More...
#include <AMReX_CSR.H>
|
| Long | nrows () const |
| | Number of logical rows represented by the CSR offset array.
|
| |
| void | resize (Long num_rows, Long num_non_zeros) |
| | Resize the storage to accommodate num_rows and num_non_zeros entries.
|
| |
| CsrView< T > | view () |
| | Mutable view of the underlying buffers.
|
| |
| CsrView< T const > | view () const |
| | Const view of the underlying buffers.
|
| |
| CsrView< T const > | const_view () const |
| | Convenience alias for view() const.
|
| |
| void | sort () |
| | Sort each row by column index. Uses GPU acceleration when possible.
|
| |
| void | sort_on_host () |
| | Host-only fallback that sorts column indices row by row.
|
| |
template<typename T, template< typename > class V>
struct amrex::CSR< T, V >
Owning CSR container backed by AMReX resizable vectors.
- Template Parameters
-
◆ const_view()
template<typename T , template< typename > class V>
◆ nrows()
template<typename T , template< typename > class V>
Number of logical rows represented by the CSR offset array.
◆ resize()
template<typename T , template< typename > class V>
Resize the storage to accommodate num_rows and num_non_zeros entries.
Existing data are discarded; value/column arrays are resized to the specified nonzero count and row offsets to num_rows+1.
- Parameters
-
| num_rows | Row count. |
| num_non_zeros | Number of nonzeros. |
◆ sort()
template<typename T , template< typename > class V>
Sort each row by column index. Uses GPU acceleration when possible.
◆ sort_on_host()
template<typename T , template< typename > class V>
Host-only fallback that sorts column indices row by row.
◆ view() [1/2]
template<typename T , template< typename > class V>
Mutable view of the underlying buffers.
◆ view() [2/2]
template<typename T , template< typename > class V>
Const view of the underlying buffers.
◆ col_index
template<typename T , template< typename > class V>
◆ mat
template<typename T , template< typename > class V>
◆ nnz
template<typename T , template< typename > class V>
◆ row_offset
template<typename T , template< typename > class V>
The documentation for this struct was generated from the following file:
- /home/runner/work/amrex/amrex/Src/LinearSolvers/AMReX_CSR.H