Mercurial > hg > octave-lyh
comparison src/ov-complex.cc @ 6974:9e32bb109980
[project @ 2007-10-08 11:06:47 by jwe]
author | jwe |
---|---|
date | Mon, 08 Oct 2007 11:06:48 +0000 |
parents | 85c7dc4afe6b |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
6973:6fcc2f5b2c7d | 6974:9e32bb109980 |
---|---|
174 return retval; | 174 return retval; |
175 } | 175 } |
176 } | 176 } |
177 | 177 |
178 bool | 178 bool |
179 octave_complex::save_ascii (std::ostream& os, bool& infnan_warned) | 179 octave_complex::save_ascii (std::ostream& os) |
180 { | 180 { |
181 Complex c = complex_value (); | 181 Complex c = complex_value (); |
182 | 182 |
183 if (! infnan_warned && (xisnan (c) || xisinf (c))) | |
184 { | |
185 warning ("save: Inf or NaN values may not be reloadable"); | |
186 infnan_warned = true; | |
187 } | |
188 | |
189 octave_write_complex (os, c); | 183 octave_write_complex (os, c); |
190 | 184 |
191 os << "\n"; | 185 os << "\n"; |
192 | 186 |
193 return true; | 187 return true; |