25 #ifndef UQ_ARRAY_OF_ONE_D_GRIDS_H
26 #define UQ_ARRAY_OF_ONE_D_GRIDS_H
28 #include <queso/OneDGrid.h>
29 #include <queso/VectorSpace.h>
46 template<
class V = GslVector,
class M = GslMatrix>
65 const V&
sizes ()
const;
81 const V& minPositionsVec,
82 const V& maxPositionsVec);
93 void print (std::ostream& os)
const;
117 #endif // UQ_ARRAY_OF_ONE_D_GRIDS_H
Class to accommodate arrays of one-dimensional grid.
const BaseOneDGrid< double > & grid(unsigned int rowId) const
Returns the grid stored in the rowId-th position of the array of grids.
const V & maxPositions() const
Returns an array with the maximum position of each grid.
A class representing a vector space.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
const VectorSpace< V, M > & rowSpace() const
Returns the (vector) space to which the row belongs to.
ArrayOfOneDGrids(const char *prefix, const VectorSpace< V, M > &rowSpace)
Default constructor.
DistArray< BaseOneDGrid< double > * > m_oneDGrids
void setUniformGrids(const V &sizesVec, const V &minPositionsVec, const V &maxPositionsVec)
Sets an array of uniform grids.
~ArrayOfOneDGrids()
Destructor.
Base class for accommodating one-dimensional grids.
const V & minPositions() const
Returns an array with the minimum position of each grid.
const VectorSpace< V, M > & m_rowSpace
A class for partitioning vectors and matrices.
const BaseEnvironment & m_env
friend std::ostream & operator<<(std::ostream &os, const ArrayOfOneDGrids< V, M > &obj)
const V & sizes() const
Returns an array with the sizes of the grids.
void print(std::ostream &os) const
Prints the values of the array of grids (points).