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>
77 void print (std::ostream& os)
const;
97 #endif // UQ_INTERSECTION_SUBSET_H
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.
const std::string & prefix() const
Access to private attribute m_prefix.
A templated class for handling subsets.
double volume() const
Set volume; access to private attribute m_volume.
A templated class for handling sets.
const VectorSet< V, M > & m_set2
Vector set: m_set2.
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.
const VectorSet< V, M > & m_set1
Vector set: m_set1.
void moments(M &mat) const
Returns the set moments of inertia in the matrix mat. Not implemented.
const VectorSpace< V, M > & vectorSpace() const
Vector space to which this set belongs to. See template specialization.