IBAMR  IBAMR version 0.19.
Public Member Functions | Private Member Functions | List of all members
SAMRAI::math::ArrayDataNormOpsInteger< DIM > Class Template Reference

#include <ArrayDataNormOpsInteger.h>

Public Member Functions

 ArrayDataNormOpsInteger ()
 
 ~ArrayDataNormOpsInteger ()
 
void abs (pdat::ArrayData< DIM, int > &dst, const pdat::ArrayData< DIM, int > &src, const hier::Box< DIM > &box) const
 

Private Member Functions

 ArrayDataNormOpsInteger (const ArrayDataNormOpsInteger< DIM > &)
 
void operator= (const ArrayDataNormOpsInteger< DIM > &)
 

Detailed Description

template<int DIM>
class SAMRAI::math::ArrayDataNormOpsInteger< DIM >

Class ArrayDataNormOpsInteger<DIM> provides a set of common norm operations that may be applied to arrays of integer data values maintained as pdat::ArrayData<DIM> objects. The intent of this class is to provide a single implementation of these operations as they are needed by objects that perform these operations on the standard array-based patch data types (i.e., cell-centered, face-centered, node-centered).
Note that each operation is performed on the intersection of the box in the function argument list and the boxes associated with all pdat::ArrayData<DIM> objects. Currently, the only norm operation implemented in this class is the absolute value operation.

See also
pdat::ArrayData

Constructor & Destructor Documentation

◆ ArrayDataNormOpsInteger() [1/2]

Empty constructor and destructor.

◆ ~ArrayDataNormOpsInteger()

◆ ArrayDataNormOpsInteger() [2/2]

template<int DIM>
SAMRAI::math::ArrayDataNormOpsInteger< DIM >::ArrayDataNormOpsInteger ( const ArrayDataNormOpsInteger< DIM > &  )
private

Member Function Documentation

◆ abs()

template<int DIM>
void SAMRAI::math::ArrayDataNormOpsInteger< DIM >::abs ( pdat::ArrayData< DIM, int > &  dst,
const pdat::ArrayData< DIM, int > &  src,
const hier::Box< DIM > &  box 
) const

Set destination component to absolute value of source component.
That is, each destination entry is set to \(d_i = \| s_i \|\).

◆ operator=()

template<int DIM>
void SAMRAI::math::ArrayDataNormOpsInteger< DIM >::operator= ( const ArrayDataNormOpsInteger< DIM > &  )
private

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