Mercurial > hg > octave-lyh
diff src/ov-range.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 | 935be827eaf8 |
line wrap: on
line diff
--- a/src/ov-range.h +++ b/src/ov-range.h @@ -165,15 +165,26 @@ 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); } + float float_scalar_value (bool frc_str_conv = false) const + { return float_value (frc_str_conv); } + Matrix matrix_value (bool = false) const { return range.matrix_value (); } + FloatMatrix float_matrix_value (bool = false) const + { return range.matrix_value (); } + NDArray array_value (bool = false) const { return range.matrix_value (); } + FloatNDArray float_array_value (bool = false) const + { return FloatMatrix (range.matrix_value ()); } + // FIXME -- it would be better to have Range::intXNDArray_value // functions to avoid the intermediate conversion to a matrix // object. @@ -210,6 +221,8 @@ Complex complex_value (bool = false) const; + FloatComplex float_complex_value (bool = false) const; + boolNDArray bool_array_value (bool warn = false) const { Matrix m = range.matrix_value (); @@ -223,9 +236,15 @@ ComplexMatrix complex_matrix_value (bool = false) const { return ComplexMatrix (range.matrix_value ()); } + FloatComplexMatrix float_complex_matrix_value (bool = false) const + { return FloatComplexMatrix (range.matrix_value ()); } + ComplexNDArray complex_array_value (bool = false) const { return ComplexMatrix (range.matrix_value ()); } + FloatComplexNDArray float_complex_array_value (bool = false) const + { return FloatComplexMatrix (range.matrix_value ()); } + Range range_value (void) const { return range; } octave_value convert_to_str_internal (bool pad, bool force, char type) const;