# HG changeset patch # User John W. Eaton # Date 1454434418 18000 # Node ID f45f4f888db5339654c7b965eafa79d2702d16c1 # Parent a223cce1daa48c7b57bdcd089139161338367121 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. diff -r a223cce1daa4 -r f45f4f888db5 liboctave/array/CSparse.h --- a/liboctave/array/CSparse.h Mon Feb 01 08:53:01 2016 -0500 +++ b/liboctave/array/CSparse.h Tue Feb 02 12:33:38 2016 -0500 @@ -51,6 +51,9 @@ { public: + // Corresponding dense matrix type for this sparse matrix type. + typedef ComplexMatrix dense_matrix_type; + typedef void (*solve_singularity_handler) (double rcond); SparseComplexMatrix (void) : MSparse () { } diff -r a223cce1daa4 -r f45f4f888db5 liboctave/array/boolSparse.h --- 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 () { } SparseBoolMatrix (octave_idx_type r, octave_idx_type c) diff -r a223cce1daa4 -r f45f4f888db5 liboctave/array/dSparse.h --- 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 () { }