Advanced Multi-Physics (AMP)
On-Line Documentation
Classes | Functions
AMP::DelaunayHelpers Namespace Reference

Classes

struct  getETYPE
 
struct  getETYPE< 1, double >
 
struct  getETYPE< 1, int >
 
struct  getETYPE< 2, double >
 
struct  getETYPE< 2, int >
 
struct  getETYPE< 3, double >
 
struct  getETYPE< 3, int >
 
struct  getETYPE< 4, double >
 
struct  getETYPE< 4, int >
 

Functions

template<int NDIM, class TYPE >
double calcVolume (const std::array< TYPE, NDIM > *x)
 
template<int NDIM, class TYPE >
std::array< double, NDIM+1 > computeBarycentric (const std::array< TYPE, NDIM > *x, const std::array< TYPE, NDIM > &xi)
 
template<class TYPE , std::size_t NDIM>
std::vector< std::array< TYPE, NDIM > > convert (const AMP::Array< TYPE > &x)
 
template<class TYPE , std::size_t NDIM>
AMP::Array< TYPE > convert (const std::vector< std::array< TYPE, NDIM > > &x)
 
template<size_t NG>
std::vector< std::array< int, NG+1 > > create_tri_neighbors (const std::vector< std::array< int, NG+1 > > &tri)
 
template<class TYPE , std::size_t NDIM>
TYPE det (const TYPE *M)
 
template<std::size_t NDIM>
long double det2 (const double *M)
 
template<std::size_t NDIM>
getETYPE< NDIM, int >::ETYPE det2 (const int *M)
 
template<>
int det2< 1 > (const int *M)
 
template<>
int64_t det2< 2 > (const int *M)
 
template<>
getETYPE< 3, int >::ETYPE det2< 3 > (const int *M)
 
static constexpr double inv_factorial (int N)
 
void inverse (int NDIM, const double *M, double *M_inv)
 
template<class TYPE , std::size_t NDIM>
void solve (const TYPE *M, const TYPE *b, TYPE *x, TYPE &det_M)
 
void solve (int NDIM, const double *M, const double *b, double *x)
 
template<size_t NG>
std::vector< int > sortTri (std::vector< std::array< int, NG+1 > > &tri)
 
template<size_t NG>
std::vector< std::array< int, NG+1 > > uniqueTri (const std::vector< std::array< int, NG+1 > > &tri)
 

Function Documentation

◆ calcVolume()

template<int NDIM, class TYPE >
double AMP::DelaunayHelpers::calcVolume ( const std::array< TYPE, NDIM > *  x)

Definition at line 272 of file DelaunayHelpers.h.

References inv_factorial().

◆ computeBarycentric()

template<int NDIM, class TYPE >
std::array< double, NDIM+1 > AMP::DelaunayHelpers::computeBarycentric ( const std::array< TYPE, NDIM > *  x,
const std::array< TYPE, NDIM > &  xi 
)

Definition at line 224 of file DelaunayHelpers.h.

References det().

◆ convert() [1/2]

template<class TYPE , std::size_t NDIM>
std::vector< std::array< TYPE, NDIM > > AMP::DelaunayHelpers::convert ( const AMP::Array< TYPE > &  x)

Definition at line 301 of file DelaunayHelpers.h.

References AMP_ASSERT, and AMP::Array< TYPE, FUN, Allocator >::size().

◆ convert() [2/2]

template<class TYPE , std::size_t NDIM>
AMP::Array< TYPE > AMP::DelaunayHelpers::convert ( const std::vector< std::array< TYPE, NDIM > > &  x)

Definition at line 291 of file DelaunayHelpers.h.

◆ create_tri_neighbors()

template<size_t NG>
std::vector< std::array< int, NG+1 > > AMP::DelaunayHelpers::create_tri_neighbors ( const std::vector< std::array< int, NG+1 > > &  tri)

◆ det()

template<class TYPE , std::size_t NDIM>
TYPE AMP::DelaunayHelpers::det ( const TYPE *  M)
inline

Definition at line 61 of file DelaunayHelpers.h.

References det().

Referenced by computeBarycentric(), det(), and det2< 3 >().

◆ det2() [1/2]

template<std::size_t NDIM>
long double AMP::DelaunayHelpers::det2 ( const double *  M)
inline

Definition at line 115 of file DelaunayHelpers.h.

◆ det2() [2/2]

template<std::size_t NDIM>
getETYPE< NDIM, int >::ETYPE AMP::DelaunayHelpers::det2 ( const int *  M)
inline

◆ det2< 1 >()

template<>
int AMP::DelaunayHelpers::det2< 1 > ( const int *  M)
inline

Definition at line 94 of file DelaunayHelpers.h.

◆ det2< 2 >()

template<>
int64_t AMP::DelaunayHelpers::det2< 2 > ( const int *  M)
inline

Definition at line 99 of file DelaunayHelpers.h.

◆ det2< 3 >()

template<>
getETYPE< 3, int >::ETYPE AMP::DelaunayHelpers::det2< 3 > ( const int *  M)
inline

Definition at line 104 of file DelaunayHelpers.h.

References det().

◆ inv_factorial()

static constexpr double AMP::DelaunayHelpers::inv_factorial ( int  N)
staticconstexpr

Definition at line 264 of file DelaunayHelpers.h.

Referenced by calcVolume().

◆ inverse()

void AMP::DelaunayHelpers::inverse ( int  NDIM,
const double *  M,
double *  M_inv 
)

◆ solve() [1/2]

template<class TYPE , std::size_t NDIM>
void AMP::DelaunayHelpers::solve ( const TYPE *  M,
const TYPE *  b,
TYPE *  x,
TYPE &  det_M 
)
inline

Definition at line 134 of file DelaunayHelpers.h.

◆ solve() [2/2]

void AMP::DelaunayHelpers::solve ( int  NDIM,
const double *  M,
const double *  b,
double *  x 
)

◆ sortTri()

template<size_t NG>
std::vector< int > AMP::DelaunayHelpers::sortTri ( std::vector< std::array< int, NG+1 > > &  tri)

◆ uniqueTri()

template<size_t NG>
std::vector< std::array< int, NG+1 > > AMP::DelaunayHelpers::uniqueTri ( const std::vector< std::array< int, NG+1 > > &  tri)



Advanced Multi-Physics (AMP)
Oak Ridge National Laboratory
Idaho National Laboratory
Los Alamos National Laboratory
This page automatically produced from the
source code by doxygen
Last updated: Tue Mar 10 2026 13:06:42.
Comments on this page