diff src/ov.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 dc6bda6f9994
line wrap: on
line diff
--- a/src/ov.cc	Wed Mar 11 14:10:36 2009 +0100
+++ b/src/ov.cc	Thu Mar 12 09:24:37 2009 +0100
@@ -43,7 +43,6 @@
 #include "ov-re-diag.h"
 #include "ov-flt-re-diag.h"
 #include "ov-perm.h"
-#include "ov-flt-perm.h"
 #include "ov-bool-sparse.h"
 #include "ov-cx-sparse.h"
 #include "ov-re-sparse.h"
@@ -693,13 +692,10 @@
   maybe_mutate ();
 }
 
-octave_value::octave_value (const PermMatrix& p, bool single)
-  : rep ()
+octave_value::octave_value (const PermMatrix& p)
+  : rep (new octave_perm_matrix (p))
 {
-  if (single)
-    rep = new octave_float_perm_matrix (p);
-  else
-    rep = new octave_perm_matrix (p);
+  maybe_mutate ();
 }
 
 octave_value::octave_value (bool b)
@@ -2481,7 +2477,6 @@
   octave_float_complex_matrix::register_type ();
   octave_float_complex_diag_matrix::register_type ();
   octave_perm_matrix::register_type ();
-  octave_float_perm_matrix::register_type ();
   octave_null_matrix::register_type ();
   octave_null_str::register_type ();
   octave_null_sq_str::register_type ();