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 print(std::ostream &os) const
Print method. Defines the behavior of operator<< inherited from the Object class. ...
Class for matrix operations using GSL library.
std::ostream & operator<<(std::ostream &os, const BaseEnvironment &obj)
virtual unsigned int numRowsGlobal() const
Not implemented yet.
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.
unsigned int numBlocks() const
Return the number of blocks in the block diagonal matrix.
Class for vector operations using GSL library.
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...
std::vector< VectorSpace< GslVector, GslMatrix > * > m_vectorSpaces
GslMatrix & getBlock(unsigned int i) const
Return block i in the block diagonal matrix.
Class for matrix operations (virtual).
virtual unsigned int numCols() const
Not implemented yet.
~GslBlockMatrix()
Destructor.
virtual void zeroUpper(bool includeDiagonal=false)
Not implemented yet.
Class for representing block matrices using GSL library.
virtual unsigned int numRowsLocal() const
Not implemented yet.
std::vector< GslMatrix * > m_blocks
virtual void zeroLower(bool includeDiagonal=false)
Not implemented yet.
virtual int chol()
Not implemented yet.