diff liboctave/array/boolSparse.h @ 21175:f45f4f888db5

provide typedef for dense matrix type in sparse matrix classes * CSparse.h (SparseComplexMatrix::dense_matrix_type): New typedef. * boolSparse.h (SparseBoolMatrix:dense_matrix_type): New typedef. * dSparse.h (SparseMatrix::dense_matrix_type): New typedef.
author John W. Eaton <jwe@octave.org>
date Tue, 02 Feb 2016 12:33:38 -0500
parents f7084eae3318
children 1473547f50f5
line wrap: on
line diff
--- a/liboctave/array/boolSparse.h	Mon Feb 01 08:53:01 2016 -0500
+++ b/liboctave/array/boolSparse.h	Tue Feb 02 12:33:38 2016 -0500
@@ -41,6 +41,9 @@
 {
 public:
 
+  // Corresponding dense matrix type for this sparse matrix type.
+  typedef boolMatrix dense_matrix_type;
+
   SparseBoolMatrix (void) : Sparse<bool> () { }
 
   SparseBoolMatrix (octave_idx_type r, octave_idx_type c)