Mercurial > octave
comparison libinterp/corefcn/rand.cc @ 25828:8b548f2f8086
maint: Strip trailing whitespace from source files.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Tue, 28 Aug 2018 00:09:59 -0400 |
parents | b400ad33d92d |
children | 373fe1608f7c |
comparison
equal
deleted
inserted
replaced
25827:d9d192928b45 | 25828:8b548f2f8086 |
---|---|
265 octave::rand::reset (fcn); | 265 octave::rand::reset (fcn); |
266 else | 266 else |
267 { | 267 { |
268 ColumnVector s = | 268 ColumnVector s = |
269 ColumnVector (args(idx+1).vector_value (false, true)); | 269 ColumnVector (args(idx+1).vector_value (false, true)); |
270 | 270 |
271 // Backwards compatibility with previous versions of | 271 // Backwards compatibility with previous versions of |
272 // Octave which mapped Inf to 0. | 272 // Octave which mapped Inf to 0. |
273 for (octave_idx_type i = 0; i < s.numel (); i++) | 273 for (octave_idx_type i = 0; i < s.numel (); i++) |
274 if (octave::math::isinf (s.xelem (i))) | 274 if (octave::math::isinf (s.xelem (i))) |
275 s.xelem (i) = 0.0; | 275 s.xelem (i) = 0.0; |