13 #if !defined(KRATOS_METRICS_MATH_UTILS)
14 #define KRATOS_METRICS_MATH_UTILS
49 template<SizeType TDim>
93 const MatrixType n_matrix =
prod(inv_metric1_matrix, metric2_matrix);
102 for (std::size_t
i = 0;
i < TDim; ++
i) {
Definition: amatrix_interface.h:41
Various mathematical utilitiy functions.
Definition: math_utils.h:62
static void BDBtProductOperation(TMatrixType1 &rA, const TMatrixType2 &rD, const TMatrixType3 &rB)
Calculates the product operation BDB'.
Definition: math_utils.h:1543
static BoundedMatrix< double, TDim, TDim > InvertMatrix(const BoundedMatrix< double, TDim, TDim > &rInputMatrix, double &rInputMatrixDet, const double Tolerance=ZeroTolerance)
Calculates the inverse of a 2x2, 3x3 and 4x4 matrices (using bounded matrix for performance)
Definition: math_utils.h:197
static bool GaussSeidelEigenSystem(const TMatrixType1 &rA, TMatrixType2 &rEigenVectorsMatrix, TMatrixType2 &rEigenValuesMatrix, const double Tolerance=1.0e-18, const SizeType MaxIterations=20)
Calculates the eigenvectors and eigenvalues of given symmetric matrix.
Definition: math_utils.h:1587
This class is used to compute some mathematical operations needed for the metrics computing.
Definition: metrics_math_utils.h:51
static TensorArrayType IntersectMetrics(const TensorArrayType &rMetric1, const TensorArrayType &rMetric2)
It computes the intersection between two metrics.
Definition: metrics_math_utils.h:80
std::conditional< TDim==2, array_1d< double, 3 >, array_1d< double, 6 > >::type TensorArrayType
The type of array considered for the tensor.
Definition: metrics_math_utils.h:57
BoundedMatrix< double, TDim, TDim > MatrixType
The definition of the matrix type.
Definition: metrics_math_utils.h:60
static double max(double a, double b)
Definition: GeometryFunctions.h:79
REF: G. R. Cowper, GAUSSIAN QUADRATURE FORMULAS FOR TRIANGLES.
Definition: mesh_condition.cpp:21
AMatrix::MatrixProductExpression< TExpression1Type, TExpression2Type > prod(AMatrix::MatrixExpression< TExpression1Type, TCategory1 > const &First, AMatrix::MatrixExpression< TExpression2Type, TCategory2 > const &Second)
Definition: amatrix_interface.h:568
std::size_t SizeType
The definition of the size type.
Definition: mortar_classes.h:43
type
Definition: generate_gid_list_file.py:35
integer i
Definition: TensorModule.f:17
e
Definition: run_cpp_mpi_tests.py:31