16#ifndef Matrice_Diagonale_included
17#define Matrice_Diagonale_included
19#include <TRUSTTabs_forward.h>
20#include <Matrice_Base.h>
31 int ordre()
const override;
37 DoubleTab&
ajouter_multTab_(
const DoubleTab& x, DoubleTab& r)
const override;
39 void scale(
const double x)
override;
40 void clean()
override;
55 double coeff(
int i,
int j)
const;
56 double&
coeff(
int i,
int j);
Classe Matrice_Base Classe de base de la hierarchie des matrices.
void dimensionner(int size)
void get_stencil_and_coefficients(Stencil &stencil, StencilCoeffs &coefficients) const override
int ordre() const override
If square matrix, returns number of lines, otherwise 0.
void get_stencil(Stencil &stencil) const override
double coeff(int i, int j) const
void get_symmetric_stencil(Stencil &stencil) const override
int nb_lignes() const override
Return local number of lines (=size on the current proc).
int nb_colonnes() const override
Return local number of columns (=size on the current proc).
DoubleTab & ajouter_multTab_(const DoubleTab &x, DoubleTab &r) const override
DoubleVect & ajouter_multvectT_(const DoubleVect &x, DoubleVect &r) const override
void get_symmetric_stencil_and_coefficients(Stencil &stencil, StencilCoeffs &coefficients) const override
DoubleVect & ajouter_multvect_(const DoubleVect &x, DoubleVect &r) const override
void scale(const double x) override
DoubleVect & get_coefficients()