Mercurial > hg > octave-lyh
diff liboctave/CNDArray.h @ 7789:82be108cc558
First attempt at single precision tyeps
* * *
corrections to qrupdate single precision routines
* * *
prefer demotion to single over promotion to double
* * *
Add single precision support to log2 function
* * *
Trivial PROJECT file update
* * *
Cache optimized hermitian/transpose methods
* * *
Add tests for tranpose/hermitian and ChangeLog entry for new transpose code
author | David Bateman <dbateman@free.fr> |
---|---|
date | Sun, 27 Apr 2008 22:34:17 +0200 |
parents | 36594d5bbe13 |
children | 935be827eaf8 |
line wrap: on
line diff
--- a/liboctave/CNDArray.h +++ b/liboctave/CNDArray.h @@ -46,7 +46,11 @@ ComplexNDArray (const ComplexMatrix& a) : MArrayN<Complex> (a) { } - ComplexNDArray (const MArrayN<Complex>& a) : MArrayN<Complex> (a) { } + template <class U> + ComplexNDArray (const MArrayN<U>& a) : MArrayN<Complex> (a) { } + + template <class U> + ComplexNDArray (const ArrayN<U>& a) : MArrayN<Complex> (a) { } ComplexNDArray& operator = (const ComplexNDArray& a) {