25 #ifndef UQ_DISCRETE_SUBSET_H
26 #define UQ_DISCRETE_SUBSET_H
28 #include <queso/VectorSpace.h>
29 #include <queso/VectorSubset.h>
44 template <
class V = GslVector,
class M = GslMatrix>
54 const std::vector<V*>& elements);
67 void print (std::ostream& os)
const;
82 #endif // UQ_DISCRETE_SUBSET_H
DiscreteSubset(const char *prefix, const VectorSpace< V, M > &vectorSpace, const std::vector< V * > &elements)
Default Constructor.
A templated class for handling sets.
bool contains(const V &vec) const
Checks whether this discrete subset contains vector vec. TODO: incomplete code.
void print(std::ostream &os) const
Prints nothing.
A templated class for handling subsets.
const VectorSpace< V, M > & vectorSpace() const
Vector space to which this set belongs to. See template specialization.
const std::string & prefix() const
Access to private attribute m_prefix.
A templated class representing the discrete vector subsets.
std::vector< V * > m_elements
Number of elements in the discrete vector subset.
A class representing a vector space.
~DiscreteSubset()
Destructor.