diff liboctave/dNDArray.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 9d080df0c843
line wrap: on
line diff
--- a/liboctave/dNDArray.h
+++ b/liboctave/dNDArray.h
@@ -47,7 +47,11 @@
 
   NDArray (const Matrix& a) : MArrayN<double> (a) { }
 
-  NDArray (const MArrayN<double>& a) : MArrayN<double> (a) { }
+  template <class U>
+  NDArray (const MArrayN<U>& a) : MArrayN<double> (a) { }
+
+  template <class U>
+  NDArray (const ArrayN<U>& a) : MArrayN<double> (a) { }
 
   template <class U>
   explicit NDArray (const intNDArray<U>& a) : MArrayN<double> (a) { }