GNU Radio Manual and C++ API Reference 3.10.5.1
The Free & Open Software Radio Ecosystem
multiply_const_v.h
Go to the documentation of this file.
1/* -*- c++ -*- */
2/*
3 * Copyright 2004,2006,2010,2012,2018 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 MULTIPLY_CONST_V_H
12#define MULTIPLY_CONST_V_H
13
14#include <gnuradio/blocks/api.h>
15#include <gnuradio/sync_block.h>
16#include <cstdint>
17
18namespace gr {
19namespace blocks {
20
21/*!
22 * \brief output = input * constant vector (element-wise)
23 * \ingroup math_operators_blk
24 */
25template <class T>
27{
28
29public:
30 // gr::blocks::multiply_const_v::sptr
31 typedef std::shared_ptr<multiply_const_v<T>> sptr;
32
33 /*!
34 * \brief Create an instance of multiply_const_v
35 * \param k multiplicative constant vector
36 */
37 static sptr make(std::vector<T> k);
38
39 /*!
40 * \brief Return multiplicative constant vector
41 */
42 virtual std::vector<T> k() const = 0;
43
44 /*!
45 * \brief Set multiplicative constant vector
46 */
47 virtual void set_k(std::vector<T> k) = 0;
48};
49
54} /* namespace blocks */
55} /* namespace gr */
56
57#endif /* MULTIPLY_CONST_V_H */
output = input * constant vector (element-wise)
Definition: multiply_const_v.h:27
virtual void set_k(std::vector< T > k)=0
Set multiplicative constant vector.
virtual std::vector< T > k() const =0
Return multiplicative constant vector.
static sptr make(std::vector< T > k)
Create an instance of multiply_const_v.
std::shared_ptr< multiply_const_v< T > > sptr
Definition: multiply_const_v.h:31
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
multiply_const_v< std::int32_t > multiply_const_vii
Definition: multiply_const_v.h:51
multiply_const_v< gr_complex > multiply_const_vcc
Definition: multiply_const_v.h:53
multiply_const_v< std::int16_t > multiply_const_vss
Definition: multiply_const_v.h:50
multiply_const_v< float > multiply_const_vff
Definition: multiply_const_v.h:52
GNU Radio logging wrapper.
Definition: basic_block.h:29