Mercurial > hg > octave-nkf
comparison liboctave/array/dMatrix.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 |
---|---|
3289 | 3289 |
3290 for (octave_idx_type j = 0; j < nc; j++) | 3290 for (octave_idx_type j = 0; j < nc; j++) |
3291 for (octave_idx_type i = 0; i < nr; i++) | 3291 for (octave_idx_type i = 0; i < nr; i++) |
3292 { | 3292 { |
3293 octave_quit (); | 3293 octave_quit (); |
3294 result (i, j) = xmin (d, m (i, j)); | 3294 result(i, j) = xmin (d, m(i, j)); |
3295 } | 3295 } |
3296 | 3296 |
3297 return result; | 3297 return result; |
3298 } | 3298 } |
3299 | 3299 |
3309 | 3309 |
3310 for (octave_idx_type j = 0; j < nc; j++) | 3310 for (octave_idx_type j = 0; j < nc; j++) |
3311 for (octave_idx_type i = 0; i < nr; i++) | 3311 for (octave_idx_type i = 0; i < nr; i++) |
3312 { | 3312 { |
3313 octave_quit (); | 3313 octave_quit (); |
3314 result (i, j) = xmin (m (i, j), d); | 3314 result(i, j) = xmin (m(i, j), d); |
3315 } | 3315 } |
3316 | 3316 |
3317 return result; | 3317 return result; |
3318 } | 3318 } |
3319 | 3319 |
3336 | 3336 |
3337 for (octave_idx_type j = 0; j < nc; j++) | 3337 for (octave_idx_type j = 0; j < nc; j++) |
3338 for (octave_idx_type i = 0; i < nr; i++) | 3338 for (octave_idx_type i = 0; i < nr; i++) |
3339 { | 3339 { |
3340 octave_quit (); | 3340 octave_quit (); |
3341 result (i, j) = xmin (a (i, j), b (i, j)); | 3341 result(i, j) = xmin (a(i, j), b(i, j)); |
3342 } | 3342 } |
3343 | 3343 |
3344 return result; | 3344 return result; |
3345 } | 3345 } |
3346 | 3346 |
3356 | 3356 |
3357 for (octave_idx_type j = 0; j < nc; j++) | 3357 for (octave_idx_type j = 0; j < nc; j++) |
3358 for (octave_idx_type i = 0; i < nr; i++) | 3358 for (octave_idx_type i = 0; i < nr; i++) |
3359 { | 3359 { |
3360 octave_quit (); | 3360 octave_quit (); |
3361 result (i, j) = xmax (d, m (i, j)); | 3361 result(i, j) = xmax (d, m(i, j)); |
3362 } | 3362 } |
3363 | 3363 |
3364 return result; | 3364 return result; |
3365 } | 3365 } |
3366 | 3366 |
3376 | 3376 |
3377 for (octave_idx_type j = 0; j < nc; j++) | 3377 for (octave_idx_type j = 0; j < nc; j++) |
3378 for (octave_idx_type i = 0; i < nr; i++) | 3378 for (octave_idx_type i = 0; i < nr; i++) |
3379 { | 3379 { |
3380 octave_quit (); | 3380 octave_quit (); |
3381 result (i, j) = xmax (m (i, j), d); | 3381 result(i, j) = xmax (m(i, j), d); |
3382 } | 3382 } |
3383 | 3383 |
3384 return result; | 3384 return result; |
3385 } | 3385 } |
3386 | 3386 |
3403 | 3403 |
3404 for (octave_idx_type j = 0; j < nc; j++) | 3404 for (octave_idx_type j = 0; j < nc; j++) |
3405 for (octave_idx_type i = 0; i < nr; i++) | 3405 for (octave_idx_type i = 0; i < nr; i++) |
3406 { | 3406 { |
3407 octave_quit (); | 3407 octave_quit (); |
3408 result (i, j) = xmax (a (i, j), b (i, j)); | 3408 result(i, j) = xmax (a(i, j), b(i, j)); |
3409 } | 3409 } |
3410 | 3410 |
3411 return result; | 3411 return result; |
3412 } | 3412 } |
3413 | 3413 |