comparison liboctave/array/idx-vector.cc @ 18083:938f01339043

maint: Use Octave coding convention for indexing vs. function calls in liboctave/array. * CMatrix.cc, CSparse.cc, Sparse.cc, dMatrix.cc, dSparse.cc, fCMatrix.cc, fMatrix.cc, idx-vector.cc: Use Octave coding convention for indexing vs. function calls in liboctave/array.
author Rik <rik@octave.org>
date Wed, 04 Dec 2013 18:56:47 -0800
parents 49a5a4be04a1
children 8e056300994b
comparison
equal deleted inserted replaced
18080:35464baa7d99 18083:938f01339043
438 octave_idx_type k = 0; 438 octave_idx_type k = 0;
439 octave_idx_type nc = bnda.cols (); 439 octave_idx_type nc = bnda.cols ();
440 octave_idx_type nr = bnda.rows (); 440 octave_idx_type nr = bnda.rows ();
441 441
442 for (octave_idx_type j = 0; j < nc; j++) 442 for (octave_idx_type j = 0; j < nc; j++)
443 for (octave_idx_type i = bnda.cidx(j); i < bnda.cidx(j+1); i++) 443 for (octave_idx_type i = bnda.cidx (j); i < bnda.cidx (j+1); i++)
444 if (bnda.data (i)) 444 if (bnda.data (i))
445 d[k++] = j * nr + bnda.ridx (i); 445 d[k++] = j * nr + bnda.ridx (i);
446 446
447 data = d; 447 data = d;
448 448