NeoPZ
Public Member Functions | Static Public Member Functions | List of all members
TPZNumeric Class Reference

Implements several methods to calculation. Utility. More...

#include <pznumeric.h>

Public Member Functions

 TPZNumeric ()
 
 ~TPZNumeric ()
 

Static Public Member Functions

static void MatrixDet (REAL matrix[3][3], REAL &det)
 Compute the 3x3-matrix determinant. More...
 
static REAL MatrixDet (REAL matrix[3][3])
 Returns the 3x3-matrix determinant. More...
 
template<class Tvar >
static void SortArray3 (const TPZVec< Tvar > &array, int ordem[3])
 Sorts in descending order, in absolute value and stores the indexes in ordem. More...
 
template<class Tvar >
static void SortArray3 (TPZVec< Tvar > &array)
 Sorts in descending order, in absolute value on self storage vector. More...
 
template<class Tvar >
static void ProdVetorial (TPZVec< Tvar > &u, TPZVec< Tvar > &v, TPZVec< Tvar > &result)
 Computes the vectorial product u x v. More...
 
template<class Tvar >
static void NormalizeVetor3 (TPZVec< Tvar > &vetor)
 Normalizes the vector with 3 elements. More...
 
template<class Tvar >
static void NormalizeVetor (TPZVec< Tvar > &vetor)
 Normalizes the vector. More...
 
template<class Tvar >
static Tvar Norm (const TPZVec< Tvar > &vetor)
 Returns the L2-norm of the vector. More...
 

Detailed Description

Implements several methods to calculation. Utility.

Author
Renato Gomes Damas

Definition at line 19 of file pznumeric.h.

Constructor & Destructor Documentation

◆ TPZNumeric()

TPZNumeric::TPZNumeric ( )

Definition at line 40 of file pznumeric.cpp.

◆ ~TPZNumeric()

TPZNumeric::~TPZNumeric ( )

Definition at line 42 of file pznumeric.cpp.

Member Function Documentation

◆ MatrixDet() [1/2]

static void TPZNumeric::MatrixDet ( REAL  matrix[3][3],
REAL &  det 
)
static

Compute the 3x3-matrix determinant.

Retorna o determinante da matriz em &det.

◆ MatrixDet() [2/2]

static REAL TPZNumeric::MatrixDet ( REAL  matrix[3][3])
static

Returns the 3x3-matrix determinant.

Retorna o determinante da matriz.

◆ Norm()

template<class Tvar >
template REAL TPZNumeric::Norm ( const TPZVec< Tvar > &  vetor)
static

◆ NormalizeVetor()

template<class Tvar >
template void TPZNumeric::NormalizeVetor< REAL > ( TPZVec< Tvar > &  vetor)
static

Normalizes the vector.

Definition at line 33 of file pznumeric.cpp.

References TPZVec< T >::NElements(), and Norm().

Referenced by TPZGeoElSide::Normal().

◆ NormalizeVetor3()

template<class Tvar >
template void TPZNumeric::NormalizeVetor3< REAL > ( TPZVec< Tvar > &  vetor)
static

Normalizes the vector with 3 elements.

Definition at line 26 of file pznumeric.cpp.

References Norm().

Referenced by TPZHyperPlaneIntersect::ReorderGeneral().

◆ ProdVetorial()

template<class Tvar >
template void TPZNumeric::ProdVetorial< REAL > ( TPZVec< Tvar > &  u,
TPZVec< Tvar > &  v,
TPZVec< Tvar > &  result 
)
static

◆ SortArray3() [1/2]

template<class Tvar >
void TPZNumeric::SortArray3 ( const TPZVec< Tvar > &  array,
int  ordem[3] 
)
static

Sorts in descending order, in absolute value and stores the indexes in ordem.

Dada a array[3] armazena sua ordem decrescente, em valor absoluto, em ordem[3].

Dada a array[3]armazena sua ordem decrescente, em valor absoluto, em ordem[3].

Definition at line 47 of file pznumeric.cpp.

References fabs.

Referenced by TPZPlane::SetPlane().

◆ SortArray3() [2/2]

template<class Tvar >
void TPZNumeric::SortArray3 ( TPZVec< Tvar > &  array)
static

Sorts in descending order, in absolute value on self storage vector.

Dada a array[3], retorna-a em ordem decrescente, em valor absoluto.

Definition at line 89 of file pznumeric.cpp.

References TPZVec< T >::NElements().


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