Mercurial > hg > octave-avbm
diff src/ov-cx-mat.cc @ 5260:deed800e7bef
[project @ 2005-03-30 23:18:58 by jwe]
author | jwe |
---|---|
date | Wed, 30 Mar 2005 23:18:58 +0000 |
parents | 57077d0ddc8e |
children | 23b37da9fd5b |
line wrap: on
line diff
--- a/src/ov-cx-mat.cc +++ b/src/ov-cx-mat.cc @@ -73,7 +73,7 @@ { Complex c = matrix (0, 0); - if (imag (c) == 0.0) + if (std::imag (c) == 0.0) retval = new octave_scalar (std::real (c)); else retval = new octave_complex (c); @@ -216,8 +216,8 @@ goto next_row; else { - double re = real (c); - double im = imag (c); + double re = std::real (c); + double im = std::imag (c); re = xisinf (re) ? (re > 0 ? OCT_RBV : -OCT_RBV) : re; im = xisinf (im) ? (im > 0 ? OCT_RBV : -OCT_RBV) : im;