Mercurial > octave
comparison libinterp/octave-value/ov-bool-mat.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 | 075a5e2e1ba5 |
children | 00cf2847355d |
comparison
equal
deleted
inserted
replaced
20217:b5d2f6954c48 | 20218:b2100e1659ac |
---|---|
191 { | 191 { |
192 NDArray tmp = array_value (); | 192 NDArray tmp = array_value (); |
193 os << "# ndims: " << d.length () << "\n"; | 193 os << "# ndims: " << d.length () << "\n"; |
194 | 194 |
195 for (int i = 0; i < d.length (); i++) | 195 for (int i = 0; i < d.length (); i++) |
196 os << " " << d (i); | 196 os << " " << d(i); |
197 | 197 |
198 os << "\n" << tmp; | 198 os << "\n" << tmp; |
199 } | 199 } |
200 else | 200 else |
201 { | 201 { |
429 | 429 |
430 OCTAVE_LOCAL_BUFFER (hsize_t, hdims, rank); | 430 OCTAVE_LOCAL_BUFFER (hsize_t, hdims, rank); |
431 | 431 |
432 // Octave uses column-major, while HDF5 uses row-major ordering | 432 // Octave uses column-major, while HDF5 uses row-major ordering |
433 for (int i = 0; i < rank; i++) | 433 for (int i = 0; i < rank; i++) |
434 hdims[i] = dv (rank-i-1); | 434 hdims[i] = dv(rank-i-1); |
435 | 435 |
436 space_hid = H5Screate_simple (rank, hdims, 0); | 436 space_hid = H5Screate_simple (rank, hdims, 0); |
437 if (space_hid < 0) return false; | 437 if (space_hid < 0) return false; |
438 #if HAVE_HDF5_18 | 438 #if HAVE_HDF5_18 |
439 data_hid = H5Dcreate (loc_id, name, H5T_NATIVE_HBOOL, space_hid, | 439 data_hid = H5Dcreate (loc_id, name, H5T_NATIVE_HBOOL, space_hid, |