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>
43 template <
class V,
class M>
62 const V&
sizes ()
const;
78 const V& minPositionsVec,
79 const V& maxPositionsVec);
90 void print (std::ostream& os)
const;
114 #endif // UQ_ARRAY_OF_ONE_D_GRIDS_H
void print(std::ostream &os) const
Prints the values of the array of grids (points).
Class to accommodate arrays of one-dimensional grid.
const VectorSpace< V, M > & rowSpace() const
Returns the (vector) space to which the row belongs to.
Base class for accommodating one-dimensional grids.
This (virtual) class sets up the environment underlying the use of the QUESO library by an executable...
const VectorSpace< V, M > & m_rowSpace
void setUniformGrids(const V &sizesVec, const V &minPositionsVec, const V &maxPositionsVec)
Sets an array of uniform grids.
~ArrayOfOneDGrids()
Destructor.
friend std::ostream & operator<<(std::ostream &os, const ArrayOfOneDGrids< V, M > &obj)
const V & minPositions() const
Returns an array with the minimum position of each grid.
const V & sizes() const
Returns an array with the sizes of the grids.
DistArray< BaseOneDGrid< double > * > m_oneDGrids
A class for partitioning vectors and matrices.
const BaseEnvironment & m_env
A class representing a vector space.
const BaseOneDGrid< double > & grid(unsigned int rowId) const
Returns the grid stored in the rowId-th position of the array of grids.
ArrayOfOneDGrids(const char *prefix, const VectorSpace< V, M > &rowSpace)
Default constructor.
const V & maxPositions() const
Returns an array with the maximum position of each grid.