WaveBlocksND
Namespaces | Typedefs | Functions
combinatorics.hpp File Reference
#include <array>
#include <list>

Go to the source code of this file.

Namespaces

 waveblocks
 
 waveblocks::math
 

Typedefs

template<int D>
using waveblocks::math::partition_t = std::array< int, D >
 
template<int D>
using waveblocks::math::partitions_t = std::list< partition_t< D >>
 
template<int D>
using waveblocks::math::point_t = std::array< int, D >
 
template<int D>
using waveblocks::math::latticepoints_t = std::list< point_t< D >>
 
template<int D>
using waveblocks::math::permutation_t = std::array< int, D >
 
template<int D>
using waveblocks::math::permutations_t = std::list< permutation_t< D >>
 

Functions

template<int D>
int waveblocks::math::sum (const point_t< D > Z)
 Sum of the components of the point Z. More...
 
template<int D>
int waveblocks::math::nz (const point_t< D > Z)
 
template<int D>
int waveblocks::math::nnz (const point_t< D > Z)
 
template<int D>
partitions_t< D > waveblocks::math::partitions (const int K)
 
template<int D>
latticepoints_t< D > waveblocks::math::lattice_points (const int N)
 
template<int D>
permutations_t< D > waveblocks::math::permutations (const permutation_t< D > permutation)