NeoPZ
|
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... | |
Implements several methods to calculation. Utility.
Definition at line 19 of file pznumeric.h.
TPZNumeric::TPZNumeric | ( | ) |
Definition at line 40 of file pznumeric.cpp.
TPZNumeric::~TPZNumeric | ( | ) |
Definition at line 42 of file pznumeric.cpp.
|
static |
Compute the 3x3-matrix determinant.
Retorna o determinante da matriz em &det.
|
static |
Returns the 3x3-matrix determinant.
Retorna o determinante da matriz.
|
static |
Returns the L2-norm of the vector.
Definition at line 16 of file pznumeric.cpp.
References TPZVec< T >::NElements(), and sqrt.
Referenced by pztopology::TPZPrism::ComputeDirections(), pztopology::computedirectionsC(), pztopology::TPZTriangle::GetSideHDivPermutation(), NormalizeVetor(), NormalizeVetor3(), ProdVetorial(), TPZHyperPlaneIntersect::Reorder(), and TPZHyperPlaneIntersect::ReorderGeneral().
|
static |
Normalizes the vector.
Definition at line 33 of file pznumeric.cpp.
References TPZVec< T >::NElements(), and Norm().
Referenced by TPZGeoElSide::Normal().
|
static |
Normalizes the vector with 3 elements.
Definition at line 26 of file pznumeric.cpp.
References Norm().
Referenced by TPZHyperPlaneIntersect::ReorderGeneral().
|
static |
Computes the vectorial product u x v.
dados dois vetores calcula o produto vetorial.
Definition at line 96 of file pznumeric.cpp.
References Norm().
Referenced by TPZLine::Belongs(), TPZPlane::Belongs(), CheckElement(), pztopology::TPZPrism::ComputeDirections(), pztopology::computedirectionsC(), pztopology::computedirectionsPr(), TPZGeoElSide::Normal(), TPZHyperPlaneIntersect::Reorder(), TPZHyperPlaneIntersect::ReorderGeneral(), and TPZPlane::SetPlane().
|
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().
|
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().