diff liboctave/dSparse.h @ 10479:ded9beac7582

optimize sparse matrix assembly
author Jaroslav Hajek <highegg@gmail.com>
date Wed, 31 Mar 2010 10:03:55 +0200
parents 99e9bae2d81e
children 19e1e4470e01
line wrap: on
line diff
--- a/liboctave/dSparse.h
+++ b/liboctave/dSparse.h
@@ -82,6 +82,11 @@
                          octave_idx_type nc = -1, bool sum_terms = true)
     : MSparse<double> (a, r, c, nr, nc, sum_terms) { }
 
+  SparseMatrix (const Array<double>& a, const idx_vector& r, 
+                const idx_vector& c, octave_idx_type nr = -1, 
+                octave_idx_type nc = -1, bool sum_terms = true)
+    : MSparse<double> (a, r, c, nr, nc, sum_terms) { }
+
   explicit SparseMatrix (const DiagMatrix& a);
 
   explicit SparseMatrix (const PermMatrix& a);