summaryrefslogtreecommitdiff
path: root/gr-blocks/include/gnuradio/blocks/exponentiate_const_cci.h
diff options
context:
space:
mode:
Diffstat (limited to 'gr-blocks/include/gnuradio/blocks/exponentiate_const_cci.h')
-rw-r--r--gr-blocks/include/gnuradio/blocks/exponentiate_const_cci.h57
1 files changed, 28 insertions, 29 deletions
diff --git a/gr-blocks/include/gnuradio/blocks/exponentiate_const_cci.h b/gr-blocks/include/gnuradio/blocks/exponentiate_const_cci.h
index 0d96c645cf..c0a897f394 100644
--- a/gr-blocks/include/gnuradio/blocks/exponentiate_const_cci.h
+++ b/gr-blocks/include/gnuradio/blocks/exponentiate_const_cci.h
@@ -28,39 +28,38 @@
#include <gnuradio/sync_block.h>
namespace gr {
- namespace blocks {
+namespace blocks {
- /*!
- * \brief Exponentiates a complex stream with an integer exponent
- * \ingroup blocks
- *
- * \details
- * This block raises a complex stream to an integer exponent. The exponent
- * must be at least 1. There is a callback function so the exponent can be
- * changed at runtime.
- *
- * NOTE: The algorithm uses iterative multiplication to achieve exponentiation,
- * hence it is O(exponent). Therefore, this block could be inefficient for large
- * exponents.
- */
- class BLOCKS_API exponentiate_const_cci : virtual public gr::sync_block
- {
- public:
- typedef boost::shared_ptr<exponentiate_const_cci> sptr;
+/*!
+ * \brief Exponentiates a complex stream with an integer exponent
+ * \ingroup blocks
+ *
+ * \details
+ * This block raises a complex stream to an integer exponent. The exponent
+ * must be at least 1. There is a callback function so the exponent can be
+ * changed at runtime.
+ *
+ * NOTE: The algorithm uses iterative multiplication to achieve exponentiation,
+ * hence it is O(exponent). Therefore, this block could be inefficient for large
+ * exponents.
+ */
+class BLOCKS_API exponentiate_const_cci : virtual public gr::sync_block
+{
+public:
+ typedef boost::shared_ptr<exponentiate_const_cci> sptr;
- /*
- * \param exponent Exponent the input stream is raised to, which must be an integer.
- * The algorithm uses iterative multiplication to achieve exponentiation, hence it is
- * O(exponent). Therefore, this block could be inefficient for large exponents.
- * \param vlen Vector length of input/output stream
- */
- static sptr make(int exponent, size_t vlen = 1);
+ /*
+ * \param exponent Exponent the input stream is raised to, which must be an integer.
+ * The algorithm uses iterative multiplication to achieve exponentiation, hence it is
+ * O(exponent). Therefore, this block could be inefficient for large exponents.
+ * \param vlen Vector length of input/output stream
+ */
+ static sptr make(int exponent, size_t vlen = 1);
- virtual void set_exponent(int exponent) = 0;
- };
+ virtual void set_exponent(int exponent) = 0;
+};
- } // namespace blocks
+} // namespace blocks
} // namespace gr
#endif /* INCLUDED_BLOCKS_EXPONENTIATE_CONST_CCI_H */
-