summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Morman <jmorman@perspectalabs.com>2019-08-02 14:31:50 -0400
committerMarcus Müller <marcus@hostalia.de>2019-08-05 16:06:20 +0200
commite3e9ea88eb4bb68381a3c84032d09df891bb74dc (patch)
tree126e0dc55d95806658caf2012b81906182ac1825
parentef0bbc719dd1e27c2257769dc2773d3502a2ebae (diff)
blocks: fix multiply matrix complex set_A
The multiply_matrix_cc block was converting the values from the set matrix to double when new_A matrix was expecting complex. Convert the PMT to complex instead
-rw-r--r--gr-blocks/lib/multiply_matrix_impl.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gr-blocks/lib/multiply_matrix_impl.cc b/gr-blocks/lib/multiply_matrix_impl.cc
index 4d7dbb3651..60053e7f56 100644
--- a/gr-blocks/lib/multiply_matrix_impl.cc
+++ b/gr-blocks/lib/multiply_matrix_impl.cc
@@ -102,7 +102,7 @@ namespace gr {
return;
}
for (size_t k = 0; k < pmt::length(row); k++) {
- new_A[i][k] = pmt::to_double(pmt::is_vector(row) ? pmt::vector_ref(row, k) : pmt::tuple_ref(row, k));
+ new_A[i][k] = pmt::to_complex(pmt::is_vector(row) ? pmt::vector_ref(row, k) : pmt::tuple_ref(row, k));
}
} else if (pmt::is_c32vector(row)) {
size_t row_len = 0;