HPCombi
High Performance Combinatorics in C++ using vector instructions v1.0.0
Loading...
Searching...
No Matches
Functions | Variables
pattern.cpp File Reference
#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< epu8subsets
 
std::vector< epu8subperm
 

Function Documentation

◆ extract_pattern()

template<int Size>
epu8 extract_pattern ( epu8  perm,
epu8  permset 
)

◆ has_pattern()

template<int Size>
bool has_pattern ( epu8  perm,
epu8  patt 
)

◆ main()

int main ( )

◆ make_subsets_of_size()

void make_subsets_of_size ( int  n,
int  k 
)

◆ operator<<()

template<typename T >
std::ostream & operator<< ( std::ostream &  out,
const std::vector< T > &  v 
)

◆ subset_to_perm()

epu8 subset_to_perm ( epu8  s)

◆ tosubset()

epu8 tosubset ( uint16_t  n)

Variable Documentation

◆ subperm

std::vector<epu8> subperm

◆ subsets

std::vector<epu8> subsets