Loading...
Searching...
No Matches
transcendental.h
Go to the documentation of this file.
/* -*- 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
*
* Available functions for real and complex input:
*
* - cos
* - sin
* - tan
* - cosh
* - sinh
* - tanh
* - exp
* - log
* - log10
* - sqrt
*
* Available functions for real input only:
*
* - acos
* - asin
* - atan
*
* 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 */
gr::basic_block::name
std::string name() const
Definition basic_block.h:168
gr::blocks::transcendental
A block that performs various transcendental math operations.
Definition transcendental.h:53
gr::blocks::transcendental::make
static sptr make(const std::string &name, const std::string &type="float")
gr::blocks::transcendental::sptr
std::shared_ptr< transcendental > sptr
Definition transcendental.h:56
gr::sync_block::sync_block
sync_block(void)
Definition sync_block.h:28
api.h
BLOCKS_API
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:18
gr::blocks
Definition abs_blk.h:20
gr
GNU Radio logging wrapper.
Definition basic_block.h:29
sync_block.h