A library for working with phylogenetic and population genetic data.
v0.32.0
utils/math/bitvector/operators.hpp File Reference
#include "genesis/utils/math/bitvector.hpp"
#include <iosfwd>

Go to the source code of this file.

Namespaces

 genesis
 Container namespace for all symbols of genesis in order to keep them separate when used as a library.
 
 genesis::utils
 

Functions

Bitvector bitwise_and (Bitvector const &lhs, Bitvector const &rhs, bool use_larger=false)
 Take the bitwise and of two Bitvectors of potentially different size. More...
 
Bitvector bitwise_or (Bitvector const &lhs, Bitvector const &rhs, bool use_larger=false)
 Take the bitwise or of two Bitvectors of potentially different size. More...
 
Bitvector bitwise_xor (Bitvector const &lhs, Bitvector const &rhs, bool use_larger=false)
 Take the bitwise xor of two Bitvectors of potentially different size. More...
 
bool is_strict_subset (Bitvector const &sub, Bitvector const &super)
 Strict subset. More...
 
bool is_strict_superset (Bitvector const &super, Bitvector const &sub)
 Strict superset. More...
 
bool is_subset (Bitvector const &sub, Bitvector const &super)
 Subset or equal. More...
 
bool is_superset (Bitvector const &super, Bitvector const &sub)
 Superset or equal. More...
 
std::ostream & operator<< (std::ostream &out, Bitvector const &bv)
 Insertion operator that outputs a Bitvector as a string of '0's and '1's. More...
 
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 char that is not '0' or '1'. More...
 
Bitvector set_minus (Bitvector const &lhs, Bitvector const &rhs)
 
Bitvector symmetric_difference (Bitvector const &lhs, Bitvector const &rhs)