Mercurial > hg > octave-lyh
diff src/ov-cx-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 | c777f3ce02d8 |
line wrap: on
line diff
--- a/src/ov-cx-mat.h +++ b/src/ov-cx-mat.h @@ -86,6 +86,8 @@ octave_base_value *clone (void) const { return new octave_complex_matrix (*this); } 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); void assign (const octave_value_list& idx, const ComplexNDArray& rhs); @@ -104,17 +106,30 @@ 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; + 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 { return matrix; } + FloatComplexNDArray float_complex_array_value (bool = false) const; + charNDArray char_array_value (bool frc_str_conv = false) const; SparseMatrix sparse_matrix_value (bool = false) const;