TrioCFD 1.9.9_beta
TrioCFD documentation
Loading...
Searching...
No Matches
Matrice33 Class Reference

A 3x3 matrix. More...

#include <Matrice33.h>

Public Member Functions

 Matrice33 ()
 Matrice33 (double m00, double m01, double m02, double m10, double m11, double m12, double m20, double m21, double m22)
 Matrice33 (const DoubleTab &tab)
double operator() (int i, int j) const
double & operator() (int i, int j)
double norme_Linfini ()
 Computes the Linfini norm of the matrix. Property: denoting |x| as the Linfini norm of x (vector or matrix),.

Static Public Member Functions

static void produit (const Matrice33 &m, const Vecteur3 &x, Vecteur3 &y)
 Matrix-vector product with vector x.
static void produit_matriciel (const Matrice33 &m1, const Matrice33 &m2, Matrice33 &res)
static void transpose (const Matrice33 &matrice, Matrice33 &matrice_transpose)
static double inverse (const Matrice33 &m, Matrice33 &resu, int exit_on_error=1)
 Computes the inverse.

Protected Member Functions

void init ()

Protected Attributes

double m [3][3]

Detailed Description

A 3x3 matrix.

Convention for m(i,j): i is the row index, j the column index, both between 0 and 2 inclusive. Warning: the default constructor does not initialize the matrix!

Definition at line 27 of file Matrice33.h.

Constructor & Destructor Documentation

◆ Matrice33() [1/3]

Matrice33::Matrice33 ( )
inline

Definition at line 30 of file Matrice33.h.

◆ Matrice33() [2/3]

Matrice33::Matrice33 ( double m00,
double m01,
double m02,
double m10,
double m11,
double m12,
double m20,
double m21,
double m22 )
inline

Definition at line 34 of file Matrice33.h.

◆ Matrice33() [3/3]

Matrice33::Matrice33 ( const DoubleTab & tab)
inline

Definition at line 46 of file Matrice33.h.

Member Function Documentation

◆ init()

void Matrice33::init ( )
inlineprotected

Definition at line 71 of file Matrice33.h.

◆ inverse()

double Matrice33::inverse ( const Matrice33 & matrice,
Matrice33 & matrice_inv,
int exit_on_error = 1 )
inlinestatic

Computes the inverse.

If the determinant of "matrice" is zero, exit() is called if exit_on_error (default value), otherwise matrice_inv is not filled and 0 is returned. Return value: determinant of "matrice" (not of the inverse!)

Definition at line 100 of file Linear_algebra_tools_impl.h.

◆ norme_Linfini()

double Matrice33::norme_Linfini ( )
inline

Computes the Linfini norm of the matrix. Property: denoting |x| as the Linfini norm of x (vector or matrix),.

we have |m * x| <= |m| * |x| In practice: it is the max over j of the sum over i of std::fabs(m(i,j))

Definition at line 25 of file Linear_algebra_tools_impl.h.

◆ operator()() [1/2]

double & Matrice33::operator() ( int i,
int j )
inline

Definition at line 58 of file Matrice33.h.

◆ operator()() [2/2]

double Matrice33::operator() ( int i,
int j ) const
inline

Definition at line 53 of file Matrice33.h.

◆ produit()

void Matrice33::produit ( const Matrice33 & m,
const Vecteur3 & x,
Vecteur3 & y )
inlinestatic

Matrix-vector product with vector x.

Definition at line 38 of file Linear_algebra_tools_impl.h.

◆ produit_matriciel()

void Matrice33::produit_matriciel ( const Matrice33 & m1,
const Matrice33 & m2,
Matrice33 & res )
inlinestatic

Definition at line 46 of file Linear_algebra_tools_impl.h.

◆ transpose()

void Matrice33::transpose ( const Matrice33 & matrice,
Matrice33 & matrice_transpose )
inlinestatic

Definition at line 86 of file Linear_algebra_tools_impl.h.

Member Data Documentation

◆ m

double Matrice33::m[3][3]
protected

Definition at line 70 of file Matrice33.h.


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