#include <AMReX_AlgVector.H>
|
| | AlgVector ()=default |
| |
| | AlgVector (Long global_size) |
| |
| | AlgVector (AlgPartition partition) |
| |
| | AlgVector (AlgVector< T, Allocator > const &)=delete |
| |
| AlgVector & | operator= (AlgVector< T, Allocator > const &)=delete |
| |
| | AlgVector (AlgVector< T, Allocator > &&) noexcept=default |
| |
| AlgVector & | operator= (AlgVector< T, Allocator > &&) noexcept=default |
| |
| | ~AlgVector ()=default |
| |
| void | define (Long global_size) |
| |
| void | define (AlgPartition partition) |
| |
| bool | empty () const |
| |
| AlgPartition const & | partition () const |
| |
| Long | numLocalRows () const |
| |
| Long | numGlobalRows () const |
| |
| Long | globalBegin () const |
| | Inclusive global index begin.
|
| |
| Long | globalEnd () const |
| | Exclusive global index end.
|
| |
| T const * | data () const |
| |
| T * | data () |
| |
| Table1D< T const, Long > | view () const |
| |
| Table1D< T const, Long > | const_view () const |
| |
| Table1D< T, Long > | view () |
| |
| void | setVal (T val) |
| |
| void | setValAsync (T val) |
| |
| void | copy (AlgVector< T, Allocator > const &rhs) |
| |
| void | copyAsync (AlgVector< T, Allocator > const &rhs) |
| |
| void | plus (AlgVector< T, Allocator > const &rhs) |
| |
| void | plusAsync (AlgVector< T, Allocator > const &rhs) |
| |
| void | scale (T scale_factor) |
| |
| void | scaleAsync (T scale_factor) |
| |
| T | sum (bool local=false) const |
| | Return the sum of elements.
|
| |
| T | norminf (bool local=false) const |
| | Return the infinity norm.
|
| |
| T | norm1 (bool local=false) const |
| | Return the 1-norm.
|
| |
| T | norm2 (bool local=false) const |
| | Return the 2-norm.
|
| |
| std::pair< T, T > | norm1and2 (bool local=false) const |
| | Return the 1-norm and 2-norm as a pair.
|
| |
| template<typename FAB , std::enable_if_t< amrex::IsBaseFab< FAB >::value &&std::is_same_v< T, typename FAB::value_type >, int > = 0> |
| void | copyFrom (FabArray< FAB > const &fa) |
| |
| template<typename FAB , std::enable_if_t< amrex::IsBaseFab< FAB >::value &&std::is_same_v< T, typename FAB::value_type >, int > = 0> |
| void | copyTo (FabArray< FAB > &fa) const |
| |
| void | printToFile (std::string const &file) const |
| |
◆ allocator_type
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ value_type
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ Vec
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ AlgVector() [1/5]
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ AlgVector() [2/5]
template<typename T , typename Allocator >
◆ AlgVector() [3/5]
template<typename T , typename Allocator >
◆ AlgVector() [4/5]
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ AlgVector() [5/5]
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ ~AlgVector()
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ const_view()
template<typename T , typename Allocator = DefaultAllocator<T>>
Return a Table1D view of the data. Unlike data(), indexing starts at the global row index. Use the global row index when accessing the data.
◆ copy()
template<typename T , typename Allocator >
Copy values from rhs into this vector. For GPU builds, this function synchronizes with the hostr before returning.
◆ copyAsync()
template<typename T , typename Allocator >
Copy values from rhs into this vector. For GPU guilds, this function is asynchronous with respect to the host.
◆ copyFrom()
template<typename T , typename Allocator >
template<typename FAB , std::enable_if_t<
amrex::IsBaseFab< FAB >::value &&std::is_same_v< T, typename FAB::value_type >,
int > >
◆ copyTo()
template<typename T , typename Allocator >
template<typename FAB , std::enable_if_t<
amrex::IsBaseFab< FAB >::value &&std::is_same_v< T, typename FAB::value_type >,
int > >
◆ data() [1/2]
template<typename T , typename Allocator = DefaultAllocator<T>>
Return raw data pointer. Unlike view(), the starting index is zero. Use the local row index when accessing the data.
◆ data() [2/2]
template<typename T , typename Allocator = DefaultAllocator<T>>
Return raw data pointer. Unlike view(), the starting index is zero. Use the local row index when accessing the data.
◆ define() [1/2]
template<typename T , typename Allocator >
◆ define() [2/2]
template<typename T , typename Allocator >
◆ empty()
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ globalBegin()
template<typename T , typename Allocator = DefaultAllocator<T>>
Inclusive global index begin.
◆ globalEnd()
template<typename T , typename Allocator = DefaultAllocator<T>>
Exclusive global index end.
◆ norm1()
template<typename T , typename Allocator >
Return the 1-norm.
By default, this returns the global norm over all MPI ranks. If local is true, it returns the norm over the locally stored entries only.
- Parameters
-
| local | If true, compute the norm over local entries only. |
- Returns
- The 1-norm.
◆ norm1and2()
template<typename T , typename Allocator >
| std::pair< T, T > amrex::AlgVector< T, Allocator >::norm1and2 |
( |
bool |
local = false | ) |
const |
Return the 1-norm and 2-norm as a pair.
By default, this returns the global norms over all MPI ranks. If local is true, it returns the norms over the locally stored entries only.
- Parameters
-
| local | If true, compute the norms over local entries only. |
- Returns
- The 1-norm and 2-norm as a pair.
◆ norm2()
template<typename T , typename Allocator >
Return the 2-norm.
By default, this returns the global norm over all MPI ranks. If local is true, it returns the norm over the locally stored entries only.
- Parameters
-
| local | If true, compute the norm over local entries only. |
- Returns
- The 2-norm.
◆ norminf()
template<typename T , typename Allocator >
Return the infinity norm.
By default, this returns the global norm over all MPI ranks. If local is true, it returns the norm over the locally stored entries only.
- Parameters
-
| local | If true, compute the norm over local entries only. |
- Returns
- The infinity norm.
◆ numGlobalRows()
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ numLocalRows()
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ operator=() [1/2]
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ operator=() [2/2]
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ partition()
template<typename T , typename Allocator = DefaultAllocator<T>>
◆ plus()
template<typename T , typename Allocator >
Add rhs to this vector in-place. For GPU builds, this function synchronizes with the hostr before returning.
◆ plusAsync()
template<typename T , typename Allocator >
Add rhs to this vector in-place. For GPU guilds, this function is asynchronous with respect to the host.
◆ printToFile()
template<typename T , typename Allocator >
| void amrex::AlgVector< T, Allocator >::printToFile |
( |
std::string const & |
file | ) |
const |
◆ scale()
template<typename T , typename Allocator >
Scale this vector by scale_factor in-place. For GPU builds, this function synchronizes with the hostr before returning.
◆ scaleAsync()
template<typename T , typename Allocator >
Scale this vector by scale_factor in-place. For GPU guilds, this function is asynchronous with respect to the host.
◆ setVal()
template<typename T , typename Allocator >
Set every element to val. For GPU builds, this function synchronizes with the host before returning.
◆ setValAsync()
template<typename T , typename Allocator >
Set every element to val. For GPU builds, this function is asynchronous with respect to the host.
◆ sum()
template<typename T , typename Allocator >
Return the sum of elements.
By default, this returns the global sum over all MPI ranks. If local is true, it returns the sum over the locally stored entries only.
- Parameters
-
| local | If true, compute the sum over local entries only. |
- Returns
- The sum of elements.
◆ view() [1/2]
template<typename T , typename Allocator = DefaultAllocator<T>>
Return a Table1D view of the data. Unlike data(), indexing starts at the global row index. Use the global row index when accessing the data.
◆ view() [2/2]
template<typename T , typename Allocator = DefaultAllocator<T>>
Return a Table1D view of the data. Unlike data(), indexing starts at the global row index. Use the global row index when accessing the data.
The documentation for this class was generated from the following file: