dudley/src/Util.cpp File Reference
`#include "Util.h"`
`#include <escript/index.h>`
`#include <algorithm>`

## Namespaces

| dudley
| A suite of factory methods for creating 2D and 3D dudley domains.
| dudley::util

## Functions

bool | dudley::util::ValueAndIndexCompare (const std::pair< int, int > &i, const std::pair< int, int > &j)
| comparison function for sortValueAndIndex More...
void | dudley::util::sortValueAndIndex (ValueAndIndexList &array)
| orders a ValueAndIndexList by value. More...
void | dudley::util::gather (int len, const index_t *index, int numData, const double *in, double *out)
template<typename Scalar >
void | dudley::util::addScatter (int len, const index_t *index, int numData, const Scalar *in, Scalar *out, index_t upperBound)
template void | dudley::util::addScatter< real_t > (int len, const index_t *index, int numData, const real_t *in, real_t *out, index_t upperBound)
template void | dudley::util::addScatter< cplx_t > (int len, const index_t *index, int numData, const cplx_t *in, cplx_t *out, index_t upperBound)
void | dudley::util::smallMatMult (int A1, int A2, double *A, int B2, const double *B, const double *C)
| multiplies two matrices: A(1:A1,1:A2) := B(1:A1,1:B2)*C(1:B2,1:A2) More...
template<typename Scalar >
void | dudley::util::smallMatSetMult1 (int len, int A1, int A2, Scalar *A, int B2, const Scalar *B, const double *C)
template void | dudley::util::smallMatSetMult1< real_t > (int len, int A1, int A2, real_t *A, int B2, const real_t *B, const real_t *C)
template void | dudley::util::smallMatSetMult1< cplx_t > (int len, int A1, int A2, cplx_t *A, int B2, const cplx_t *B, const real_t *C)
void | dudley::util::normalVector (int len, int dim, int dim1, const double *A, double *Normal)
IndexPair | dudley::util::getMinMaxInt (int dim, dim_t N, const index_t *values)
IndexPair | dudley::util::getFlaggedMinMaxInt (dim_t N, const index_t *values, index_t ignore)
std::vector< index_t > | dudley::util::packMask (const std::vector< short > &mask)
void | dudley::util::setValuesInUse (const int *values, dim_t numValues, std::vector< int > &valuesInUse, escript::JMPI mpiinfo)