LvArray
Classes | Namespaces | Functions
CRSMatrixView.hpp File Reference

Contains the implementation of LvArray::CRSMatrixView. More...

#include "SparsityPatternView.hpp"
#include "arrayManipulation.hpp"
#include "ArraySlice.hpp"
#include "umpireInterface.hpp"
Include dependency graph for CRSMatrixView.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LvArray::CRSMatrixView< T, COL_TYPE, INDEX_TYPE, BUFFER_TYPE >
 This class provides a view into a compressed row storage matrix. More...
 
class  LvArray::CRSMatrixView< T, COL_TYPE, INDEX_TYPE, BUFFER_TYPE >::CallBacks
 This class provides the callbacks for the sortedArrayManipulation routines. More...
 

Namespaces

 LvArray
 The top level namespace.
 

Functions

template<typename POLICY , typename T >
LVARRAY_HOST_DEVICE void LvArray::internal::atomicAdd (POLICY, T *const acc, T const &val)
 Wrapper around RAJA::atomicAdd. More...
 
template<typename T >
DISABLE_HD_WARNING LVARRAY_HOST_DEVICE constexpr void LvArray::internal::atomicAdd (RAJA::seq_atomic, T *acc, T const &val)
 Wrapper around RAJA::atomicAdd. More...
 

Detailed Description

Contains the implementation of LvArray::CRSMatrixView.

Function Documentation

◆ atomicAdd() [1/2]

template<typename POLICY , typename T >
LVARRAY_HOST_DEVICE void LvArray::internal::atomicAdd ( POLICY  ,
T *const  acc,
T const &  val 
)
inline

Wrapper around RAJA::atomicAdd.

Template Parameters
POLICYThe RAJA atomic policy to use.
TThe type of the value to add to.
Parameters
accA pointer to the value to add to.
valThe value to add.

◆ atomicAdd() [2/2]

template<typename T >
DISABLE_HD_WARNING LVARRAY_HOST_DEVICE constexpr void LvArray::internal::atomicAdd ( RAJA::seq_atomic  ,
T *  acc,
T const &  val 
)
inline

Wrapper around RAJA::atomicAdd.

Template Parameters
TThe type of the value to add to.
Parameters
accA pointer to the value to add to.
valThe value to add.
Note
An overload for RAJA::seq_atomic that doesn't use a volatile pointer. Necessary for non-primative types.