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
A templated class representing the discrete vector subsets.
A class representing a vector space.
const std::string & prefix() const
Access to private attribute m_prefix.
~DiscreteSubset()
Destructor.
A templated class for handling subsets.
A templated class for handling sets.
std::vector< V * > m_elements
Number of elements in the discrete vector subset.
DiscreteSubset(const char *prefix, const VectorSpace< V, M > &vectorSpace, const std::vector< V * > &elements)
Default Constructor.
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.
const VectorSpace< V, M > & vectorSpace() const
Vector space to which this set belongs to. See template specialization.