25 #ifndef UQ_VECTOR_SPACE_H 
   26 #define UQ_VECTOR_SPACE_H 
   28 #include <queso/DistArray.h> 
   29 #include <queso/Map.h> 
   30 #include <queso/VectorSet.h> 
   46 template <
class V = GslVector, 
class M = GslMatrix>
 
   47 class VectorSpace : 
public VectorSet<V,M>
 
   57                      unsigned int                    dimGlobalValue,
 
   70   const BaseEnvironment&  
env                     () 
const;
 
   74   const Map&              
map                     () 
const;
 
  136   void                           print                   (std::ostream& os) 
const;
 
  142   using VectorSet<V,M>::m_env;
 
  143   using VectorSet<V,M>::m_prefix;
 
  144   using VectorSet<V,M>::m_volume;
 
  174 #endif // UQ_VECTOR_SPACE_H 
unsigned int dimLocal() const 
void printComponentsNames(std::ostream &os, bool printHorizontally) const 
Prints the local component names. 
const VectorSpace< V, M > & vectorSpace() const 
Accessor method to this. Vector space to which this vector set belongs to. 
std::string m_emptyComponentName
Empty string for the components names. 
const std::vector< std::string > * componentsNamesVec() const 
Access to private attribute m_componentsNamesVec. 
void print(std::ostream &os) const 
Prints only a message. 
const Map & map() const 
Map. 
unsigned int m_dimGlobal
Global dimension. 
VectorSpace()
Default constructor. 
DistArray< std::string > * m_componentsNamesVec
Vector of strings of the type DistArray to store the names of the components. 
M * newMatrix() const 
Creates an empty matrix of size given by Map& map. See template specialization. 
const V & zeroVector() const 
Returns a vector filled with zeros. 
unsigned int dimGlobal() const 
V * newVector() const 
Creates an empty vector of size given by Map& map. See template specialization. 
unsigned int globalIdOfFirstComponent() const 
const std::string & localComponentName(unsigned int localComponentId) const 
Returns the local component names. 
V * m_zeroVector
A vector of all elements equal to zero. 
const BaseEnvironment & env() const 
Environment. 
M * newDiagMatrix(const V &v) const 
Creates a diagonal matrix with the elements and size of vector v. 
const DistArray< std::string > * componentsNamesArray() const 
Access to private attribute m_componentsNamesArray, which is an instance of DistArray. 
unsigned int m_dimLocal
Local dimension (number of elements owned by the calling processor.). 
Map * newMap()
Creates a new map. See template specialization. 
~VectorSpace()
Destructor. 
bool contains(const V &vec) const 
Whether  vector contains vector vec. 
A class for partitioning vectors and matrices. 
M * newProposalMatrix(const V *varVec, const V *auxVec) const 
Creates a diagonal matrix conditionally to values from vector varVec, guaranteeing that its values ar...
const std::string & prefix() const 
Access to private attribute m_prefix. 
unsigned int numOfProcsForStorage() const 
Returns total number of processes. 
DistArray< std::string > * m_componentsNamesArray
Array of strings of the type DistArray to store the names of the components.