GNU Radio Manual and C++ API Reference  3.10.9.1
The Free & Open Software Radio Ecosystem
base.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2002,2012 Free Software Foundation, Inc.
4  *
5  * This file is part of GNU Radio
6  *
7  * SPDX-License-Identifier: GPL-3.0-or-later
8  *
9  */
10 
11 #ifndef INCLUDED_TRELLIS_BASE_H
12 #define INCLUDED_TRELLIS_BASE_H
13 
14 #include <vector>
15 
16 namespace gr {
17 namespace trellis {
18 
19 /*!
20  * \brief change base
21  */
22 
23 bool dec2base(unsigned int num, int base, std::vector<int>& s);
24 bool dec2bases(unsigned int num, const std::vector<int>& bases, std::vector<int>& s);
25 unsigned int base2dec(const std::vector<int>& s, int base);
26 unsigned int bases2dec(const std::vector<int>& s, const std::vector<int>& bases);
27 
28 } /* namespace trellis */
29 } /* namespace gr */
30 
31 #endif /* INCLUDED_TRELLIS_BASE_H */
bool dec2bases(unsigned int num, const std::vector< int > &bases, std::vector< int > &s)
bool dec2base(unsigned int num, int base, std::vector< int > &s)
change base
unsigned int bases2dec(const std::vector< int > &s, const std::vector< int > &bases)
unsigned int base2dec(const std::vector< int > &s, int base)
GNU Radio logging wrapper.
Definition: basic_block.h:29