summaryrefslogtreecommitdiff
path: root/gr-fec/lib/ldpc_G_matrix_impl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gr-fec/lib/ldpc_G_matrix_impl.cc')
-rw-r--r--gr-fec/lib/ldpc_G_matrix_impl.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/gr-fec/lib/ldpc_G_matrix_impl.cc b/gr-fec/lib/ldpc_G_matrix_impl.cc
index d0a6df1dee..2c9469521d 100644
--- a/gr-fec/lib/ldpc_G_matrix_impl.cc
+++ b/gr-fec/lib/ldpc_G_matrix_impl.cc
@@ -77,13 +77,16 @@ namespace gr {
}
// Check if the identity matrix exists in the right spot.
- int test_if_equal = gsl_matrix_equal(identity, I_test);
+ //int test_if_equal = gsl_matrix_equal(identity, I_test);
+ gsl_matrix_sub(identity, I_test); // should be null set if equal
+ double test_if_not_equal = gsl_matrix_max(identity);
// Free memory
gsl_matrix_free(identity);
gsl_matrix_free(I_test);
- if(!test_if_equal) {
+ //if(!test_if_equal) {
+ if(test_if_not_equal > 0) {
GR_LOG_ERROR(d_logger,
"Error in ldpc_G_matrix_impl constructor. It appears "
"that the given alist file did not contain either a "