Mercurial > hg > octave-nkf
diff src/ov-complex.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 | c777f3ce02d8 |
line wrap: on
line diff
--- a/src/ov-complex.h +++ b/src/ov-complex.h @@ -73,6 +73,8 @@ octave_base_value *empty_clone (void) const { return new octave_complex_matrix (); } + type_conv_fcn numeric_demotion_function (void) const; + octave_base_value *try_narrowing_conversion (void); octave_value do_index_op (const octave_value_list& idx, @@ -99,13 +101,22 @@ 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; + FloatMatrix float_matrix_value (bool = false) const; + NDArray array_value (bool = false) const; + FloatNDArray float_array_value (bool = false) const; + SparseMatrix sparse_matrix_value (bool = false) const { return SparseMatrix (matrix_value ()); } @@ -116,10 +127,16 @@ 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; + void increment (void) { scalar += 1.0; } void decrement (void) { scalar -= 1.0; }