25 #ifndef UQ_GSL_BLOCK_MATRIX_H
26 #define UQ_GSL_BLOCK_MATRIX_H
34 #include <queso/Environment.h>
35 #include <queso/Matrix.h>
36 #include <queso/GslVector.h>
37 #include <queso/GslMatrix.h>
38 #include <queso/VectorSpace.h>
73 virtual unsigned int numCols()
const;
79 virtual void zeroLower(
bool includeDiagonal=
false);
82 virtual void zeroUpper(
bool includeDiagonal=
false);
99 virtual void print (std::ostream & os)
const;
112 #endif // UQ_GSL_BLOCK_MATRIX_H
virtual void zeroLower(bool includeDiagonal=false)
Not implemented yet.
Class for matrix operations using GSL library.
Class for matrix operations (virtual).
GslBlockMatrix(const std::vector< unsigned int > &blockSizes, const GslVector &v, double diagValue)
Creates a square matrix with size defined by v and diagonal values all equal to diagValue.
virtual void zeroUpper(bool includeDiagonal=false)
Not implemented yet.
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
std::vector< GslMatrix * > m_blocks
virtual unsigned int numCols() const
Not implemented yet.
GslMatrix & getBlock(unsigned int i) const
Return block i in the block diagonal matrix.
virtual int chol()
Not implemented yet.
Class for representing block matrices using GSL library.
Class for vector operations using GSL library.
virtual unsigned int numRowsGlobal() const
Not implemented yet.
~GslBlockMatrix()
Destructor.
virtual void print(std::ostream &os) const
Print method. Defines the behavior of operator<< inherited from the Object class. ...
void invertMultiply(const GslVector &b, GslVector &x) const
This function calculates the inverse of this matrix, multiplies it with vector b and stores the resul...
virtual unsigned int numRowsLocal() const
Not implemented yet.
std::vector< VectorSpace< GslVector, GslMatrix > * > m_vectorSpaces
unsigned int numBlocks() const
Return the number of blocks in the block diagonal matrix.