25 #ifndef UQ_INTERSECTION_SUBSET_H
26 #define UQ_INTERSECTION_SUBSET_H
28 #include <queso/VectorSpace.h>
29 #include <queso/VectorSubset.h>
44 template <
class V = GslVector,
class M = GslMatrix>
70 void print (std::ostream& os)
const;
90 #endif // UQ_INTERSECTION_SUBSET_H
bool contains(const V &vec) const
Determines whether both sets m_set1 and m_set2 (class' private attributes) contain vector vec...
A templated class for handling sets.
A templated class representing the intersection of two vector sets.
const VectorSet< V, M > & m_set1
Vector set: m_set1.
~IntersectionSubset()
Destructor.
const VectorSet< V, M > & m_set2
Vector set: m_set2.
A templated class for handling subsets.
double volume() const
Set volume; access to private attribute m_volume.
IntersectionSubset(const char *prefix, const VectorSpace< V, M > &vectorSpace, double volume, const VectorSet< V, M > &set1, const VectorSet< V, M > &set2)
Default, shaped constructor.
const VectorSpace< V, M > & vectorSpace() const
Vector space to which this set belongs to. See template specialization.
void print(std::ostream &os) const
Prints both subsets (via protected attributes m_set1 and m_set2).
const std::string & prefix() const
Access to private attribute m_prefix.
A class representing a vector space.