Mercurial > octave-nkf
comparison liboctave/Array-util.cc @ 14844:5bc9b9cb4362
maint: Use Octave coding conventions for cuddled parenthesis in retval assignments.
* hello.cc, Array-util.cc, CNDArray.cc, CSparse.cc, Sparse.cc, dNDArray.cc,
dSparse.cc, fCNDArray.cc, fNDArray.cc, lo-specfun.cc, list_primes.m,
rectangle_lw.m, sinetone.m, amd.cc, bsxfun.cc, ccolamd.cc, eigs.cc, lu.cc,
qz.cc, spparms.cc, oct-stream.cc: Use Octave coding conventions for cuddled
parenthesis in retval assignments.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Fri, 06 Jul 2012 14:00:25 -0700 |
parents | 72c96de7a403 |
children | 3d8ace26c5b4 |
comparison
equal
deleted
inserted
replaced
14843:7d4f87c75dbb | 14844:5bc9b9cb4362 |
---|---|
234 conv_to_int_array (const Array<idx_vector>& a) | 234 conv_to_int_array (const Array<idx_vector>& a) |
235 { | 235 { |
236 Array<octave_idx_type> retval (a.dims ()); | 236 Array<octave_idx_type> retval (a.dims ()); |
237 | 237 |
238 for (octave_idx_type i = 0; i < a.length (); i++) | 238 for (octave_idx_type i = 0; i < a.length (); i++) |
239 retval (i) = a(i).elem (0); | 239 retval(i) = a(i).elem (0); |
240 | 240 |
241 return retval; | 241 return retval; |
242 } | 242 } |
243 | 243 |
244 Array<idx_vector> | 244 Array<idx_vector> |
245 conv_to_array (const idx_vector *tmp, const octave_idx_type len) | 245 conv_to_array (const idx_vector *tmp, const octave_idx_type len) |
246 { | 246 { |
247 Array<idx_vector> retval (dim_vector (len, 1)); | 247 Array<idx_vector> retval (dim_vector (len, 1)); |
248 | 248 |
249 for (octave_idx_type i = 0; i < len; i++) | 249 for (octave_idx_type i = 0; i < len; i++) |
250 retval (i) = tmp[i]; | 250 retval(i) = tmp[i]; |
251 | 251 |
252 return retval; | 252 return retval; |
253 } | 253 } |
254 | 254 |
255 dim_vector | 255 dim_vector |