Mercurial > octave
comparison libinterp/corefcn/fft.cc @ 20218:b2100e1659ac
maint: Use cuddled parentheses when indexing dimension_vectors.
* libinterp/corefcn/besselj.cc, libinterp/corefcn/bsxfun.cc,
libinterp/corefcn/data.cc, libinterp/corefcn/dot.cc, libinterp/corefcn/fft.cc,
libinterp/corefcn/fft2.cc, libinterp/corefcn/tril.cc,
libinterp/corefcn/typecast.cc, libinterp/octave-value/ov-base-int.cc,
libinterp/octave-value/ov-base-mat.cc,
libinterp/octave-value/ov-base-sparse.cc,
libinterp/octave-value/ov-bool-mat.cc, libinterp/octave-value/ov-cell.cc,
libinterp/octave-value/ov-cx-mat.cc, libinterp/octave-value/ov-flt-cx-mat.cc,
libinterp/octave-value/ov-flt-re-mat.cc, libinterp/octave-value/ov-lazy-idx.cc,
libinterp/octave-value/ov-re-mat.cc, libinterp/octave-value/ov-str-mat.cc,
libinterp/octave-value/ov-struct.cc, liboctave/array/Array-util.cc,
liboctave/array/Array.cc, liboctave/array/CMatrix.cc,
liboctave/array/CNDArray.cc, liboctave/array/MArray.cc,
liboctave/array/Sparse.cc, liboctave/array/dMatrix.cc,
liboctave/array/dNDArray.cc, liboctave/array/fCMatrix.cc,
liboctave/array/fCNDArray.cc, liboctave/array/fMatrix.cc,
liboctave/array/fNDArray.cc, liboctave/operators/mx-inlines.cc:
maint: Use cuddled parentheses when indexing dimension_vectors.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 23 May 2015 21:46:44 -0700 |
parents | 4197fc428c7d |
children | f90c8372b7ba |
comparison
equal
deleted
inserted
replaced
20217:b5d2f6954c48 | 20218:b2100e1659ac |
---|---|
110 if (dim < 0) | 110 if (dim < 0) |
111 dim = 1; | 111 dim = 1; |
112 } | 112 } |
113 | 113 |
114 if (n_points < 0) | 114 if (n_points < 0) |
115 n_points = dims (dim); | 115 n_points = dims(dim); |
116 else | 116 else |
117 dims (dim) = n_points; | 117 dims(dim) = n_points; |
118 | 118 |
119 if (dims.any_zero () || n_points == 0) | 119 if (dims.any_zero () || n_points == 0) |
120 { | 120 { |
121 if (arg.is_single_type ()) | 121 if (arg.is_single_type ()) |
122 return octave_value (FloatNDArray (dims)); | 122 return octave_value (FloatNDArray (dims)); |