diff liboctave/array/dSparse.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 e06e600f396a
children f7121e111991
line wrap: on
line diff
--- a/liboctave/array/dSparse.h	Mon Feb 01 08:53:01 2016 -0500
+++ b/liboctave/array/dSparse.h	Tue Feb 02 12:33:38 2016 -0500
@@ -48,6 +48,9 @@
 {
 public:
 
+  // Corresponding dense matrix type for this sparse matrix type.
+  typedef Matrix dense_matrix_type;
+
   typedef void (*solve_singularity_handler) (double rcond);
 
   SparseMatrix (void) : MSparse<double> () { }