diff src/ov-re-mat.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 39930366b709
children f336dd8e96d0
line wrap: on
line diff
--- a/src/ov-re-mat.h	Wed May 14 18:09:56 2008 +0200
+++ b/src/ov-re-mat.h	Sun Apr 27 22:34:17 2008 +0200
@@ -87,6 +87,8 @@
   octave_base_value *clone (void) const { return new octave_matrix (*this); }
   octave_base_value *empty_clone (void) const { return new octave_matrix (); }
 
+  type_conv_fcn numeric_demotion_function (void) const;
+
   octave_base_value *try_narrowing_conversion (void);
 
   idx_vector index_vector (void) const { return idx_vector (matrix); }
@@ -127,23 +129,35 @@
 
   double double_value (bool = false) const;
 
+  float float_value (bool = false) const;
+
   double scalar_value (bool frc_str_conv = false) const
     { return double_value (frc_str_conv); }
 
   Matrix matrix_value (bool = false) const;
 
+  FloatMatrix float_matrix_value (bool = false) const;
+
   Complex complex_value (bool = false) const;
 
+  FloatComplex float_complex_value (bool = false) const;
+
   ComplexMatrix complex_matrix_value (bool = false) const;
 
+  FloatComplexMatrix float_complex_matrix_value (bool = false) const;
+
   ComplexNDArray complex_array_value (bool = false) const;
    
+  FloatComplexNDArray float_complex_array_value (bool = false) const;
+   
   boolNDArray bool_array_value (bool warn = false) const;
 
   charNDArray char_array_value (bool = false) const;
   
   NDArray array_value (bool = false) const { return matrix; }
 
+  FloatNDArray float_array_value (bool = false) const { return matrix; }
+
   SparseMatrix sparse_matrix_value (bool = false) const;
 
   SparseComplexMatrix sparse_complex_matrix_value (bool = false) const;