16#include <Matrice_Base.h>
17#include <Matrice_Morse.h>
18#include <Matrice_Morse_Sym.h>
19#include <Matrix_tools.h>
20#include <Array_tools.h>
44DoubleVect operator * (
const Matrice_Base& A,
const DoubleVect& vect)
52 Cerr <<
"Error in 'Matrice_Base::build_stencil( )"<<finl;
53 Cerr <<
" This method should be implemented in derived class." << finl;
54 Cerr <<
" Exiting..." << finl;
65 Cerr <<
"Error in 'Matrice_Base::get_stencil( )':" << finl;
66 Cerr <<
" This method should be implemented in derived class." << finl;
67 Cerr <<
" Exiting..." << finl;
81 StencilCoeffs& coefficients )
const
83 Cerr <<
"Error in 'Matrice_Base::get_stencill_and_coefficients( )':" << finl;
84 Cerr <<
" This method should be implemented in derived class" << finl;
85 Cerr <<
" Exiting..." << finl;
91 Cerr <<
"Error in 'Matrice_Base::get_stencil_and_coeff_ptrs( )':" << finl;
92 Cerr <<
" This method should be implemented in derived class" << finl;
93 Cerr <<
" Exiting..." << finl;
99 StencilCoeffs& coefficients )
const
111 tableau_trier_retirer_doublons(
stencil_ );
Class defining operators and methods for all reading operation in an input flow (file,...
Matrice_Base class - Base class of the matrix hierarchy.
int get_stencil_size() const
void set_stencil(const Stencil &stencil)
virtual void get_symmetric_stencil(Stencil &stencil) const
virtual void get_stencil(Stencil &stencil) const
bool is_stencil_up_to_date_
virtual int nb_colonnes() const =0
Return local number of columns (=size on the current proc).
virtual DoubleVect & multvect(const DoubleVect &, DoubleVect &) const
Multiplication of a vector by the matrix.
virtual void get_symmetric_stencil_and_coefficients(Stencil &stencil, StencilCoeffs &coefficients) const
virtual void get_stencil_and_coeff_ptrs(Stencil &stencil, std::vector< const double * > &coeff_ptr) const
virtual void get_stencil_and_coefficients(Stencil &stencil, StencilCoeffs &coefficients) const
virtual void build_stencil()
bool is_stencil_up_to_date() const
Matrice_Morse_Sym class - Represents a sparse symmetric matrix M stored in Morse format.
void get_symmetric_stencil_and_coefficients(Stencil &stencil, StencilCoeffs &coefficients) const override
void get_symmetric_stencil(Stencil &stencil) const override
Matrice_Morse class - Represents a (sparse) matrix M, not necessarily square,.
Base class for TRUST objects (Objet_U).
const Nom & que_suis_je() const
Returns the string identifying the class.
virtual Entree & readOn(Entree &)
Reads an Objet_U from an input stream. Virtual method to override.
virtual Sortie & printOn(Sortie &) const
Writes the object to an output stream. Virtual method to override.
static void exit(int exit_code=-1)
Exit routine for TRUST within a Kokkos region.
Base class for output streams.