1#ifndef AMREX_SPMAT_UTIL_H_
2#define AMREX_SPMAT_UTIL_H_
3#include <AMReX_Config.H>
22template <
typename T,
template <
typename>
class V>
45template <
typename T,
template<
typename>
class Allocator>
54 AT.m_partition = std::move(col_partition);
55 AT.m_nnz = A.m_csr.
nnz;
59 AT.m_csr = std::move(at_csr);
Definition AMReX_AlgPartition.H:21
Distributed CSR matrix that manages storage and GPU-friendly partitions.
Definition AMReX_SpMatrix.H:61
Long numLocalRows() const
Number of rows owned by this rank.
Definition AMReX_SpMatrix.H:189
amrex_long Long
Definition AMReX_INT.H:30
int MyProc() noexcept
Definition AMReX_ParallelDescriptor.H:128
Definition AMReX_Amr.cpp:49
CSR< T, V > transpose(CSR< T, V > const &csr, Long ncols)
Build the transpose CSR of csr.
Definition AMReX_SpMatUtil.H:23
Owning CSR container backed by AMReX resizable vectors.
Definition AMReX_CSR.H:49
V< Long > row_offset
Definition AMReX_CSR.H:52
Long nnz
Definition AMReX_CSR.H:53
CsrView< T > view()
Mutable view of the underlying buffers.
Definition AMReX_CSR.H:77
CsrView< T const > const_view() const
Convenience alias for view() const.
Definition AMReX_CSR.H:89
V< Long > col_index
Definition AMReX_CSR.H:51
V< T > mat
Definition AMReX_CSR.H:50