Mercurial > hg > octave-terminal
changeset 3587:b11f9c33558f
[project @ 2000-02-08 05:54:21 by jwe]
author | jwe |
---|---|
date | Tue, 08 Feb 2000 05:56:25 +0000 |
parents | 2a38a5ddf20d |
children | 48834d424048 |
files | src/ChangeLog src/DLD-FUNCTIONS/balance.cc src/DLD-FUNCTIONS/log.cc src/DLD-FUNCTIONS/lu.cc src/DLD-FUNCTIONS/qz.cc src/ov-bool-mat.h src/ov-ch-mat.h src/ov-cx-mat.h src/ov-range.h src/ov-re-mat.h src/pt-plot.cc src/version.h |
diffstat | 12 files changed, 38 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,24 @@ 2000-02-07 John W. Eaton <jwe@bevo.che.wisc.edu> + * DLD-FUNCTIONS/balance.cc (Fbalance): Explicitly request + conversion from Matrix to ComplexMatrix. + * DLD-FUNCTIONS/qz.cc (Fqz): Likewise. + + * ov-re-mat.h (octave_matrix::complex_matrix_value): Explicitly + request conversion from Matrix type. + + * ov-ch-mat.h (octave_char_matrix::matrix_value): Explicitly + request conversion from charMatrix type. + (octave_char_matrix::complex_matrix_value): Likewise. + * ov-bool-mat.h (octave_bool_matrix::matrix_value): Likewise. + (octave_bool_matrix::complex_matrix_value): Likewise. + + * ov-range.h (octave_range::complex_matrix_value): Explicitly + request conversion from Matrix type. + + * ov-cx-mat.h, ov-re-mat.h: Explicitly request conversions from + diagonal matrix types in constructors. + * mappers.cc (ximag, xreal): Return double, not Complex. * error.cc (panic): Turn off buffering of error messages.
--- a/src/DLD-FUNCTIONS/balance.cc +++ b/src/DLD-FUNCTIONS/balance.cc @@ -232,10 +232,10 @@ if (complex_case) { if (args(0).is_real_type ()) - caa = aa; + caa = ComplexMatrix (aa); if (args(1).is_real_type ()) - cbb = bb; + cbb = ComplexMatrix (bb); F77_XFCN (zggbal, ZGGBAL, (&job, nn, caa.fortran_vec(), nn,
--- a/src/DLD-FUNCTIONS/log.cc +++ b/src/DLD-FUNCTIONS/log.cc @@ -25,6 +25,7 @@ #endif #include "EIG.h" +#include "mx-cm-cdm.h" #include "defun-dld.h" #include "error.h"
--- a/src/DLD-FUNCTIONS/lu.cc +++ b/src/DLD-FUNCTIONS/lu.cc @@ -139,7 +139,7 @@ case 1: case 2: { - ComplexMatrix P = fact.P (); + Matrix P = fact.P (); ComplexMatrix L = P.transpose () * fact.L (); retval(1) = fact.U (); retval(0) = L;
--- a/src/DLD-FUNCTIONS/qz.cc +++ b/src/DLD-FUNCTIONS/qz.cc @@ -477,16 +477,16 @@ { // complex case if (args(0).is_real_type ()) - caa = aa; + caa = ComplexMatrix (aa); if (args(1).is_real_type ()) - cbb = bb; + cbb = ComplexMatrix (bb); if (compq == 'V') - CQ = QQ; + CQ = ComplexMatrix (QQ); if (compz == 'V') - CZ = ZZ; + CZ = ComplexMatrix (ZZ); error ("complex case not done yet"); return retval;
--- a/src/ov-bool-mat.h +++ b/src/ov-bool-mat.h @@ -89,12 +89,12 @@ double scalar_value (bool frc_str_conv = false) const { return double_value (frc_str_conv); } - Matrix matrix_value (bool = false) const { return matrix; } + Matrix matrix_value (bool = false) const { return Matrix (matrix); } Complex complex_value (bool = false) const; ComplexMatrix complex_matrix_value (bool = false) const - { return matrix; } + { return ComplexMatrix (matrix); } boolMatrix bool_matrix_value (void) const { return matrix; }
--- a/src/ov-ch-mat.h +++ b/src/ov-ch-mat.h @@ -90,12 +90,12 @@ double scalar_value (bool frc_str_conv = false) const { return double_value (frc_str_conv); } - Matrix matrix_value (bool = false) const { return matrix; } + Matrix matrix_value (bool = false) const { return Matrix (matrix); } Complex complex_value (bool = false) const; ComplexMatrix complex_matrix_value (bool = false) const - { return matrix; } + { return ComplexMatrix (matrix); } charMatrix char_matrix_value (bool = false) const { return matrix; }
--- a/src/ov-cx-mat.h +++ b/src/ov-cx-mat.h @@ -60,7 +60,7 @@ : octave_base_matrix<ComplexMatrix> (m) { } octave_complex_matrix (const ComplexDiagMatrix& d) - : octave_base_matrix<ComplexMatrix> (d) { } + : octave_base_matrix<ComplexMatrix> (ComplexMatrix (d)) { } octave_complex_matrix (const ComplexRowVector& v) : octave_base_matrix<ComplexMatrix> (ComplexMatrix (v)) { }
--- a/src/ov-range.h +++ b/src/ov-range.h @@ -133,7 +133,7 @@ Complex complex_value (bool = false) const; ComplexMatrix complex_matrix_value (bool = false) const - { return range.matrix_value (); } + { return ComplexMatrix (range.matrix_value ()); } Range range_value (void) const { return range; }
--- a/src/ov-re-mat.h +++ b/src/ov-re-mat.h @@ -60,7 +60,7 @@ : octave_base_matrix<Matrix> (m) { } octave_matrix (const DiagMatrix& d) - : octave_base_matrix<Matrix> (d) { } + : octave_base_matrix<Matrix> (Matrix (d)) { } octave_matrix (const RowVector& v) : octave_base_matrix<Matrix> (Matrix (v)) { } @@ -97,7 +97,7 @@ Complex complex_value (bool = false) const; ComplexMatrix complex_matrix_value (bool = false) const - { return matrix; } + { return ComplexMatrix (matrix); } void increment (void) { matrix += 1.0; }