25 #include <queso/VectorSpace.h>
26 #include <queso/VectorSet.h>
27 #include <queso/IntersectionSubset.h>
28 #include <queso/GslVector.h>
29 #include <queso/GslMatrix.h>
34 template<
class V,
class M>
47 template<
class V,
class M>
53 template<
class V,
class M>
56 return (m_set1.contains(vec) && m_set2.contains(vec));
59 template<
class V,
class M>
63 queso_not_implemented();
66 template<
class V,
class M>
70 queso_not_implemented();
74 template <
class V,
class M>
77 os <<
"In IntersectionSubset<V,M>::print()"
78 <<
": m_set1 = " << m_set1
79 <<
", m_set2 = " << m_set2
void centroid(V &vec) const
Returns the set centroid in the vector vec. Not implemented.
IntersectionSubset(const char *prefix, const VectorSpace< V, M > &vectorSpace, double volume, const VectorSet< V, M > &set1, const VectorSet< V, M > &set2)
Default, shaped constructor.
A class representing a vector space.
A templated class for handling subsets.
A templated class for handling sets.
void print(std::ostream &os) const
Prints both subsets (via protected attributes m_set1 and m_set2).
~IntersectionSubset()
Destructor.
bool contains(const V &vec) const
Determines whether both sets m_set1 and m_set2 (class' private attributes) contain vector vec...
A templated class representing the intersection of two vector sets.
void moments(M &mat) const
Returns the set moments of inertia in the matrix mat. Not implemented.