summaryrefslogtreecommitdiff
path: root/gr-blocks/include/gnuradio/blocks/transcendental.h
blob: 421aa3d7a83a914104e560a77b40b24d23ea7da8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
/* -*- c++ -*- */
/*
 * Copyright 2011,2013 Free Software Foundation, Inc.
 *
 * This file is part of GNU Radio
 *
 * SPDX-License-Identifier: GPL-3.0-or-later
 *
 */

#ifndef INCLUDED_GR_TRANSCENDENTAL_H
#define INCLUDED_GR_TRANSCENDENTAL_H

#include <gnuradio/blocks/api.h>
#include <gnuradio/sync_block.h>
#include <string>

namespace gr {
namespace blocks {

/*!
 * \brief A block that performs various transcendental math operations.
 * \ingroup math_operators_blk
 *
 * \details
 * Possible function names can be found in the cmath library. IO
 * may be either complex or real, double or single precision.
 *
 * Possible type strings: float, double, complex_float, complex_double
 *
 * output[i] = trans_fcn(input[i])
 */
class BLOCKS_API transcendental : virtual public sync_block
{
public:
    // gr::blocks::transcendental::sptr
    typedef std::shared_ptr<transcendental> sptr;

    static sptr make(const std::string& name, const std::string& type = "float");
};

} /* namespace blocks */
} /* namespace gr */

#endif /* INCLUDED_GR_TRANSCENDENTAL_H */