comparison libinterp/octave-value/ov-cx-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 09ed6f7538dd
children c6224b4e7774
comparison
equal deleted inserted replaced
20217:b5d2f6954c48 20218:b2100e1659ac
335 ComplexNDArray tmp = complex_array_value (); 335 ComplexNDArray tmp = complex_array_value ();
336 336
337 os << "# ndims: " << d.length () << "\n"; 337 os << "# ndims: " << d.length () << "\n";
338 338
339 for (int i = 0; i < d.length (); i++) 339 for (int i = 0; i < d.length (); i++)
340 os << " " << d (i); 340 os << " " << d(i);
341 341
342 os << "\n" << tmp; 342 os << "\n" << tmp;
343 } 343 }
344 else 344 else
345 { 345 {
582 582
583 OCTAVE_LOCAL_BUFFER (hsize_t, hdims, rank); 583 OCTAVE_LOCAL_BUFFER (hsize_t, hdims, rank);
584 584
585 // Octave uses column-major, while HDF5 uses row-major ordering 585 // Octave uses column-major, while HDF5 uses row-major ordering
586 for (int i = 0; i < rank; i++) 586 for (int i = 0; i < rank; i++)
587 hdims[i] = dv (rank-i-1); 587 hdims[i] = dv(rank-i-1);
588 588
589 space_hid = H5Screate_simple (rank, hdims, 0); 589 space_hid = H5Screate_simple (rank, hdims, 0);
590 if (space_hid < 0) return false; 590 if (space_hid < 0) return false;
591 591
592 hid_t save_type_hid = H5T_NATIVE_DOUBLE; 592 hid_t save_type_hid = H5T_NATIVE_DOUBLE;