Mercurial > hg > octave-nkf
comparison liboctave/dSparse.h @ 8910:6e9f26506804
optimize diag -> sparse and perm -> sparse conversions
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Thu, 05 Mar 2009 08:34:52 +0100 |
parents | 8b1a2555c4e2 |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8909:52596fe9f178 | 8910:6e9f26506804 |
---|---|
80 const Array<double>& c, octave_idx_type nr = -1, | 80 const Array<double>& c, octave_idx_type nr = -1, |
81 octave_idx_type nc = -1, bool sum_terms = true) | 81 octave_idx_type nc = -1, bool sum_terms = true) |
82 : MSparse<double> (a, r, c, nr, nc, sum_terms) { } | 82 : MSparse<double> (a, r, c, nr, nc, sum_terms) { } |
83 | 83 |
84 explicit SparseMatrix (const DiagMatrix& a); | 84 explicit SparseMatrix (const DiagMatrix& a); |
85 | |
86 explicit SparseMatrix (const PermMatrix& a); | |
85 | 87 |
86 SparseMatrix (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz) : MSparse<double> (r, c, num_nz) { } | 88 SparseMatrix (octave_idx_type r, octave_idx_type c, octave_idx_type num_nz) : MSparse<double> (r, c, num_nz) { } |
87 | 89 |
88 SparseMatrix& operator = (const SparseMatrix& a) | 90 SparseMatrix& operator = (const SparseMatrix& a) |
89 { | 91 { |