Mercurial > hg > octave-nkf
diff liboctave/Range.cc @ 11586:12df7854fa7c
strip trailing whitespace from source files
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 20 Jan 2011 17:24:59 -0500 |
parents | fd0a3ac60b0e |
children | 731a0b589cab |
line wrap: on
line diff
--- a/liboctave/Range.cc +++ b/liboctave/Range.cc @@ -37,7 +37,7 @@ #include "Array-util.h" Range::Range (double b, double i, octave_idx_type n) - : rng_base (b), rng_limit (b + n * i), rng_inc (i), + : rng_base (b), rng_limit (b + n * i), rng_inc (i), rng_nelem (n), cache () { if (! xfinite (b) || ! xfinite (i)) @@ -93,13 +93,13 @@ struct _rangeidx_helper { double *array, base, inc; - _rangeidx_helper (double *a, double b, double i) + _rangeidx_helper (double *a, double b, double i) : array (a), base (b), inc (i) { } void operator () (octave_idx_type i) { *array++ = base + i * inc; } }; -Array<double> +Array<double> Range::index (const idx_vector& i) const { Array<double> retval; @@ -235,7 +235,7 @@ } -Matrix +Matrix Range::diag (octave_idx_type k) const { return matrix_value ().diag (k);