Mercurial > octave
changeset 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 | a223cce1daa4 |
children | 791dcb32b657 |
files | liboctave/array/CSparse.h liboctave/array/boolSparse.h liboctave/array/dSparse.h |
diffstat | 3 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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<Complex> () { }
--- 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)
--- 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> () { }