HPCombi
High Performance Combinatorics in C++ using vector instructions v1.0.0
|
#include <array>
#include <cassert>
#include <cstdint>
#include <functional>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#include <unordered_map>
#include "simde/x86/sse4.1.h"
#include "hpcombi/perm16.hpp"
Functions | |
template<typename T > | |
std::ostream & | operator<< (std::ostream &out, const std::vector< T > &v) |
epu8 | tosubset (uint16_t n) |
epu8 | subset_to_perm (epu8 s) |
void | make_subsets_of_size (int n, int k) |
template<int Size> | |
epu8 | extract_pattern (epu8 perm, epu8 permset) |
template<int Size> | |
bool | has_pattern (epu8 perm, epu8 patt) |
int | main () |
Variables | |
std::vector< epu8 > | subsets |
std::vector< epu8 > | subperm |
int main | ( | ) |
void make_subsets_of_size | ( | int | n, |
int | k | ||
) |
std::ostream & operator<< | ( | std::ostream & | out, |
const std::vector< T > & | v | ||
) |
epu8 tosubset | ( | uint16_t | n | ) |
std::vector<epu8> subperm |
std::vector<epu8> subsets |