diff liboctave/dbleDET.cc @ 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 2eb392d058bb
children
line wrap: on
line diff
--- a/liboctave/dbleDET.cc
+++ b/liboctave/dbleDET.cc
@@ -52,7 +52,7 @@
 {
   if (c2 != 0.0)
     {
-      double etmp = e2 / xlog2 (10);
+      double etmp = e2 / xlog2 (static_cast<double>(10));
       e10 = static_cast<int> (xround (etmp));
       etmp -= e10;
       c10 = c2 * pow (10.0, etmp);
@@ -74,7 +74,7 @@
 double
 DET::value (void) const
 {
-  return base2 ? c2 * xexp2 (e2) : c10 * pow (10.0, e10);
+  return base2 ? c2 * xexp2 (static_cast<double>(e2)) : c10 * pow (10.0, e10);
 }
 
 /*