diff src/DLD-FUNCTIONS/det.cc @ 8960:93f18f166aba

remove float perm matrices
author Jaroslav Hajek <highegg@gmail.com>
date Thu, 12 Mar 2009 09:24:37 +0100
parents eb63fbe60fab
children 923c7cb7f13f
line wrap: on
line diff
--- a/src/DLD-FUNCTIONS/det.cc	Wed Mar 11 14:10:36 2009 +0100
+++ b/src/DLD-FUNCTIONS/det.cc	Thu Mar 12 09:24:37 2009 +0100
@@ -43,7 +43,6 @@
 #include "ov-flt-re-diag.h"
 #include "ov-flt-cx-diag.h"
 #include "ov-perm.h"
-#include "ov-flt-perm.h"
 
 #define MAYBE_CAST(VAR, CLASS) \
   const CLASS *VAR = arg.type_id () == CLASS::static_type_id () ? \
@@ -128,18 +127,9 @@
     }
   else if (arg.is_perm_matrix ())
     {
-      if (isfloat)
-        {
-          retval(0) = static_cast<float> (arg.perm_matrix_value ().determinant ());
-          if (nargout > 1)
-            retval(1) = 1.0;
-        }
-      else
-        {
-          retval(0) = static_cast<double> (arg.perm_matrix_value ().determinant ());
-          if (nargout > 1)
-            retval(1) = 1.0f;
-        }
+      retval(0) = static_cast<double> (arg.perm_matrix_value ().determinant ());
+      if (nargout > 1)
+        retval(1) = 1.0;
     }
   else if (arg.is_single_type ())
     {