|
IBAMR
IBAMR version 0.19.
|
#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 > &) |
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.
| SAMRAI::math::ArrayDataNormOpsInteger< DIM >::ArrayDataNormOpsInteger | ( | ) |
Empty constructor and destructor.
| SAMRAI::math::ArrayDataNormOpsInteger< DIM >::~ArrayDataNormOpsInteger | ( | ) |
|
private |
| 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 \|\).
|
private |
1.8.17