aboutsummaryrefslogtreecommitdiffstats
path: root/blocklib/math/complex_to_mag_squared
diff options
context:
space:
mode:
Diffstat (limited to 'blocklib/math/complex_to_mag_squared')
-rw-r--r--blocklib/math/complex_to_mag_squared/complex_to_mag_squared.yml31
-rw-r--r--blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc40
-rw-r--r--blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.h31
3 files changed, 0 insertions, 102 deletions
diff --git a/blocklib/math/complex_to_mag_squared/complex_to_mag_squared.yml b/blocklib/math/complex_to_mag_squared/complex_to_mag_squared.yml
deleted file mode 100644
index 03ea8a448..000000000
--- a/blocklib/math/complex_to_mag_squared/complex_to_mag_squared.yml
+++ /dev/null
@@ -1,31 +0,0 @@
-module: math
-block: complex_to_mag_squared
-label: Complex to Magnitude Squared
-blocktype: sync_block
-category: '[Core]/Math Operators'
-
-parameters:
-- id: vlen
- label: Vector Length
- dtype: size
- settable: false
- default: 1
-
-ports:
-- domain: stream
- id: in
- direction: input
- type: cf32
- shape: parameters/vlen
-
-- domain: stream
- id: out
- direction: output
- type: rf32
- shape: parameters/vlen
-
-implementations:
-- id: cpu
-# - id: cuda
-
-file_format: 1
diff --git a/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc b/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc
deleted file mode 100644
index 826a53679..000000000
--- a/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.cc
+++ /dev/null
@@ -1,40 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2012 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-
-#include "complex_to_mag_squared_cpu.h"
-#include "complex_to_mag_squared_cpu_gen.h"
-#include <volk/volk.h>
-
-namespace gr {
-namespace math {
-complex_to_mag_squared_cpu::complex_to_mag_squared_cpu(const block_args& args)
- : INHERITED_CONSTRUCTORS, d_vlen(args.vlen)
-{
- // const int alignment_multiple = volk_get_alignment() / sizeof(float);
- // set_output_multiple(std::max(1, alignment_multiple));
-}
-
-work_return_t complex_to_mag_squared_cpu::work(work_io& wio)
-{
- auto noutput_items = wio.outputs()[0].n_items;
- int noi = noutput_items * d_vlen;
-
- auto iptr = wio.inputs()[0].items<gr_complex>();
- auto optr = wio.outputs()[0].items<float>();
-
- volk_32fc_magnitude_squared_32f(optr, iptr, noi);
-
- wio.produce_each(noutput_items);
- return work_return_t::OK;
-}
-
-
-} // namespace math
-} // namespace gr
diff --git a/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.h b/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.h
deleted file mode 100644
index b50bbd544..000000000
--- a/blocklib/math/complex_to_mag_squared/complex_to_mag_squared_cpu.h
+++ /dev/null
@@ -1,31 +0,0 @@
-/* -*- c++ -*- */
-/*
- * Copyright 2012 Free Software Foundation, Inc.
- *
- * This file is part of GNU Radio
- *
- * SPDX-License-Identifier: GPL-3.0-or-later
- *
- */
-
-#pragma once
-
-#include <gnuradio/math/complex_to_mag_squared.h>
-#include <volk/volk.h>
-
-namespace gr {
-namespace math {
-
-class complex_to_mag_squared_cpu : public complex_to_mag_squared
-{
-public:
- complex_to_mag_squared_cpu(const block_args& args);
-
- work_return_t work(work_io&) override;
-
-private:
- size_t d_vlen;
-};
-
-} // namespace math
-} // namespace gr \ No newline at end of file