16#ifndef Matrix_tools_included
17#define Matrix_tools_included
19#include <TRUSTTabs_forward.h>
28using Stencil = BigIntTab;
29using StencilCoeffs = BigArrOfDouble;
31using Stencil = IntTab;
32using StencilCoeffs = ArrOfDouble;
43 std::vector<const double *>& coeffs);
49 template <
typename _TYPE_,
typename _SIZE_>
57 template <
typename _SIZE_>
63 static void allocate_morse_matrix(
const int nb_lines,
const int nb_columns,
const Stencil& stencil,
Matrice_Morse& matrix,
const bool& attach_stencil_to_matrix =
false);
65 static void build_morse_matrix(
const int nb_lines,
const int nb_columns,
const Stencil& stencil,
const StencilCoeffs& coefficients,
Matrice_Morse& matrix);
85 static bool is_diagonal_stencil(
const int nb_lines,
const int nb_columns,
const Stencil& stencil);
88 static void allocate_from_stencil(
const int nb_lines,
const int nb_columns,
const Stencil& stencil,
Matrice& matrix,
const bool& attach_stencil_to_matrix =
false);
Classe Matrice_Base Classe de base de la hierarchie des matrices.
Classe Matrice_Morse_Sym Represente une matrice M (creuse) symetrique stockee au format Morse.
Classe Matrice_Morse Represente une matrice M (creuse), non necessairement carree.
Classe Matrice Classe generique de la hierarchie des matrices.
: Tableau a n entrees pour n<= 4.