23 #ifndef INCLUDED_TRELLIS_BASE_H
24 #define INCLUDED_TRELLIS_BASE_H
35 bool dec2base(
unsigned int num,
int base, std::vector<int> &s);
36 bool dec2bases(
unsigned int num,
const std::vector<int> &bases, std::vector<int> &s);
37 unsigned int base2dec(
const std::vector<int> &s,
int base);
38 unsigned int bases2dec(
const std::vector<int> &s,
const std::vector<int> &bases);
bool dec2base(unsigned int num, int base, std::vector< int > &s)
change base
bool dec2bases(unsigned int num, const std::vector< int > &bases, std::vector< int > &s)
unsigned int bases2dec(const std::vector< int > &s, const std::vector< int > &bases)
unsigned int base2dec(const std::vector< int > &s, int base)