1 #ifndef GENESIS_UTILS_MATH_BITVECTOR_OPERATORS_H_ 2 #define GENESIS_UTILS_MATH_BITVECTOR_OPERATORS_H_ 52 Bitvector
bitwise_and (Bitvector
const& lhs, Bitvector
const& rhs);
61 Bitvector
bitwise_or (Bitvector
const& lhs, Bitvector
const& rhs);
70 Bitvector
bitwise_xor (Bitvector
const& lhs, Bitvector
const& rhs);
72 Bitvector
set_minus (Bitvector
const& lhs, Bitvector
const& rhs);
88 bool is_subset( Bitvector
const& sub, Bitvector
const& super );
93 bool is_superset( Bitvector
const& super, Bitvector
const& sub );
98 std::ostream&
operator << ( std::ostream& out, Bitvector
const& bv );
104 std::istream&
operator >> ( std::istream& in, Bitvector& bv );
109 #endif // include guard bool is_superset(Bitvector const &super, Bitvector const &sub)
Superset or equal.
std::istream & operator>>(std::istream &in, Bitvector &bv)
Extraction operator that inputs a Bitvector from a string of '0's and '1's, and stops at the first ch...
bool is_strict_subset(Bitvector const &sub, Bitvector const &super)
Strict subset.
Bitvector symmetric_difference(Bitvector const &lhs, Bitvector const &rhs)
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
std::ostream & operator<<(std::ostream &os, const Matrix< signed char > &matrix)
Template specialization for signed char, in order to print nicely.
bool is_subset(Bitvector const &sub, Bitvector const &super)
Subset or equal.
Bitvector bitwise_or(Bitvector const &lhs, Bitvector const &rhs)
Take the bitwise or of two Bitvectors of potentially different size.
Bitvector bitwise_xor(Bitvector const &lhs, Bitvector const &rhs)
Take the bitwise xor of two Bitvectors of potentially different size.
Bitvector bitwise_and(Bitvector const &lhs, Bitvector const &rhs)
Take the bitwise and of two Bitvectors of potentially different size.
bool is_strict_superset(Bitvector const &super, Bitvector const &sub)
Strict superset.
Bitvector set_minus(Bitvector const &lhs, Bitvector const &rhs)