GNU Radio Manual and C++ API Reference  v3.9.2.0-89-gb7c7001e
The Free & Open Software Radio Ecosystem
transcendental.h
Go to the documentation of this file.
1 /* -*- c++ -*- */
2 /*
3  * Copyright 2011,2013 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_GR_TRANSCENDENTAL_H
12 #define INCLUDED_GR_TRANSCENDENTAL_H
13 
14 #include <gnuradio/blocks/api.h>
15 #include <gnuradio/sync_block.h>
16 #include <string>
17 
18 namespace gr {
19 namespace blocks {
20 
21 /*!
22  * \brief A block that performs various transcendental math operations.
23  * \ingroup math_operators_blk
24  *
25  * \details
26  * Possible function names can be found in the cmath library. IO
27  * may be either complex or real, double or single precision.
28  *
29  * Possible type strings: float, double, complex_float, complex_double
30  *
31  * output[i] = trans_fcn(input[i])
32  */
33 class BLOCKS_API transcendental : virtual public sync_block
34 {
35 public:
36  // gr::blocks::transcendental::sptr
37  typedef std::shared_ptr<transcendental> sptr;
38 
39  static sptr make(const std::string& name, const std::string& type = "float");
40 };
41 
42 } /* namespace blocks */
43 } /* namespace gr */
44 
45 #endif /* INCLUDED_GR_TRANSCENDENTAL_H */
A block that performs various transcendental math operations.
Definition: transcendental.h:34
static sptr make(const std::string &name, const std::string &type="float")
std::shared_ptr< transcendental > sptr
Definition: transcendental.h:37
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:29