28 #include <queso/Environment.h>
29 #include <queso/Vector.h>
74 virtual unsigned int numCols ()
const = 0;
79 virtual int chol () = 0;
86 virtual void zeroLower (
bool includeDiagonal =
false) = 0;
90 virtual void zeroUpper (
bool includeDiagonal =
false) = 0;
95 virtual void print (std::ostream& os)
const = 0;
118 #ifdef QUESO_CLASSES_INSTANTIATE_NEW_MAPS
143 #endif // UQ_MATRIX_H
const Map & m_map
Mapping variable.
const Map m_map
Mapping variable.
A class for partitioning vectors and matrices.
const BaseEnvironment & env() const
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
virtual void zeroUpper(bool includeDiagonal=false)=0
Sets to zero all the elements above (including or not) the diagonal of the matrix.
virtual void print(std::ostream &os) const =0
Print this matrix.
virtual void zeroLower(bool includeDiagonal=false)=0
Sets to zero all the elements bellow (including or not) the diagonal of the matrix.
unsigned int numOfProcsForStorage() const
bool m_printHorizontally
Flag for either or not print this matrix.
virtual ~Matrix()
Virtual Destructor.
bool getInDebugMode() const
Checks if QUESO will run through this class in debug mode.
bool getPrintHorizontally() const
Checks if matrix will be is printed horizontally.
Class for matrix operations (virtual).
virtual int chol()=0
Performs Cholesky factorization of the matrix.
void setInDebugMode(bool value) const
Determines whether QUESO will run through this class in debug mode.
void setPrintHorizontally(bool value) const
Determines whether the matrix should be printed horizontally.
virtual void base_copy(const Matrix &src)
Copies base data from matrix src to this matrix.
virtual unsigned int numCols() const =0
Returns the number of columns local of the matrix.
virtual unsigned int numRowsLocal() const =0
Returns the number of rows local of the matrix.
const BaseEnvironment & m_env
QUESO environment variable.
virtual unsigned int numRowsGlobal() const =0
Returns the number of rows global of the matrix.
bool m_inDebugMode
Flag for either or not QUESO is in debug mode.
Matrix()
Default constructor.