|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_UTILS_MATH_BITVECTOR_OPERATORS_H_
2 #define GENESIS_UTILS_MATH_BITVECTOR_OPERATORS_H_
54 Bitvector
bitwise_and( Bitvector
const& lhs, Bitvector
const& rhs,
bool use_larger =
false );
61 Bitvector
bitwise_or( Bitvector
const& lhs, Bitvector
const& rhs,
bool use_larger =
false );
68 Bitvector
bitwise_xor( Bitvector
const& lhs, Bitvector
const& rhs,
bool use_larger =
false );
70 Bitvector
set_minus (Bitvector
const& lhs, Bitvector
const& rhs);
86 bool is_subset( Bitvector
const& sub, Bitvector
const& super );
91 bool is_superset( Bitvector
const& super, Bitvector
const& sub );
126 std::ostream&
operator << ( std::ostream& out, Bitvector
const& bv );
132 std::istream&
operator >> ( std::istream& in, Bitvector& bv );
137 #endif // include guard
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...
std::ostream & operator<<(std::ostream &os, Color const &color)
Write a textual representation of the Color the a stream, in the format "(r, g, b,...
bool is_superset(Bitvector const &super, Bitvector const &sub)
Superset or equal.
bool is_strict_subset(Bitvector const &sub, Bitvector const &super)
Strict subset.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
Bitvector set_minus(Bitvector const &lhs, Bitvector const &rhs)
Bitvector bitwise_or(Bitvector const &lhs, Bitvector const &rhs, bool use_larger)
Take the bitwise or of two Bitvectors of potentially different size.
bool is_subset(Bitvector const &sub, Bitvector const &super)
Subset or equal.
Bitvector symmetric_difference(Bitvector const &lhs, Bitvector const &rhs)
Bitvector bitwise_and(Bitvector const &lhs, Bitvector const &rhs, bool use_larger)
Take the bitwise and of two Bitvectors of potentially different size.
bool is_strict_superset(Bitvector const &super, Bitvector const &sub)
Strict superset.
Bitvector bitwise_xor(Bitvector const &lhs, Bitvector const &rhs, bool use_larger)
Take the bitwise xor of two Bitvectors of potentially different size.