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);
Matrice_Base class - Base class of the matrix hierarchy.
Matrice_Morse_Sym class - Represents a sparse symmetric matrix M stored in Morse format.
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
Matrice class - Generic class in the matrix hierarchy.
N-dimensional array for N <= 4.