Mercurial > hg > octave-lyh
diff liboctave/MSparse.h @ 10516:f0266ee4aabe
optimize some special indexing & assignment cases
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Tue, 13 Apr 2010 14:59:01 +0200 |
parents | 19e1e4470e01 |
children | b4d2080b6df7 |
line wrap: on
line diff
--- a/liboctave/MSparse.h +++ b/liboctave/MSparse.h @@ -55,6 +55,9 @@ MSparse (const Sparse<T>& a) : Sparse<T> (a) { } + template <class U> + MSparse (const Sparse<U>& a) : Sparse<T> (a) { } + MSparse (const Array<T>& a, const idx_vector& r, const idx_vector& c, octave_idx_type nr = -1, octave_idx_type nc = -1, bool sum_terms = true) : Sparse<T> (a, r, c, nr, nc, sum_terms) { }