Mercurial > octave-nkf
diff src/ov-base.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 | 5adeea5de26c |
children | 8447a5024650 |
line wrap: on
line diff
--- a/src/ov-base.h Wed May 14 18:09:56 2008 +0200 +++ b/src/ov-base.h Sun Apr 27 22:34:17 2008 +0200 @@ -126,6 +126,10 @@ numeric_conversion_function (void) const { return static_cast<type_conv_fcn> (0); } + virtual type_conv_fcn + numeric_demotion_function (void) const + { return static_cast<type_conv_fcn> (0); } + virtual octave_value squeeze (void) const; virtual octave_base_value *try_narrowing_conversion (void) { return 0; } @@ -322,21 +326,36 @@ virtual double double_value (bool = false) const; + virtual float float_value (bool = false) const; + virtual double scalar_value (bool frc_str_conv = false) const { return double_value (frc_str_conv); } + virtual float float_scalar_value (bool frc_str_conv = false) const + { return float_value (frc_str_conv); } + virtual Cell cell_value (void) const; virtual Matrix matrix_value (bool = false) const; + virtual FloatMatrix float_matrix_value (bool = false) const; + virtual NDArray array_value (bool = false) const; + virtual FloatNDArray float_array_value (bool = false) const; + virtual Complex complex_value (bool = false) const; + virtual FloatComplex float_complex_value (bool = false) const; + virtual ComplexMatrix complex_matrix_value (bool = false) const; + virtual FloatComplexMatrix float_complex_matrix_value (bool = false) const; + virtual ComplexNDArray complex_array_value (bool = false) const; + virtual FloatComplexNDArray float_complex_array_value (bool = false) const; + virtual bool bool_value (bool = false) const; virtual boolMatrix bool_matrix_value (bool = false) const;