comparison liboctave/array/CSparse.cc @ 23450:855122b993da

maint: Wrap tertiary operator in parentheses "(COND ? x : y)". * Canvas.cc, color-picker.cc, dialog.cc, marker.cc, main-window.cc, Cell.cc, __magick_read__.cc, __pchip_deriv__.cc, __qp__.cc, bsxfun.cc, call-stack.cc, cellfun.cc, data.cc, defaults.cc, det.cc, eig.cc, error.cc, file-io.cc, filter.cc, find.cc, gammainc.cc, gcd.cc, gl-render.cc, graphics.cc, graphics.in.h, help.cc, hex2num.cc, inv.cc, load-save.cc, lookup.cc, ls-mat4.cc, ls-mat5.cc, ls-oct-binary.cc, ls-oct-text.cc, lu.cc, max.cc, mex.cc, oct-hist.cc, oct-map.cc, oct-procbuf.cc, oct-stream.cc, pr-output.cc, rand.cc, regexp.cc, schur.cc, str2double.cc, strfns.cc, symtab.cc, sysdep.cc, tril.cc, variables.cc, xdiv.cc, audiodevinfo.cc, audioread.cc, colamd.cc, gzip.cc, ov-base-diag.cc, ov-base-mat.h, ov-base-scalar.h, ov-class.cc, ov-classdef.cc, ov-fcn-handle.cc, ov-range.cc, ov-range.h, ov-struct.cc, ov-usr-fcn.cc, ov.cc, octave.cc, op-class.cc, pt-eval.cc, pt-funcall.cc, pt-idx.cc, pt-jit.cc, pt-stmt.cc, version.cc, Array-util.cc, Array.cc, CDiagMatrix.cc, CMatrix.cc, CNDArray.cc, CSparse.cc, Range.cc, Sparse.cc, chNDArray.cc, dDiagMatrix.cc, dMatrix.cc, dNDArray.cc, dSparse.cc, dim-vector.cc, fCDiagMatrix.cc, fCMatrix.cc, fCNDArray.cc, fDiagMatrix.cc, fMatrix.cc, fNDArray.cc, idx-vector.cc, idx-vector.h, Faddeeva.cc, DASPK.cc, DASRT.cc, DASSL.cc, EIG.cc, fEIG.cc, gsvd.cc, lo-specfun.cc, oct-rand.cc, qr.cc, qrp.cc, randgamma.cc, schur.cc, svd.cc, Sparse-diag-op-defs.h, mx-inlines.cc, oct-env.cc, cmd-edit.cc, kpse.cc, oct-inttypes.h, oct-sort.cc: Wrap tertiary operator in parentheses "(COND ? x : y)".
author Rik <rik@octave.org>
date Thu, 27 Apr 2017 17:33:10 -0700
parents 3f1bf237908b
children 21baad6b35c4
comparison
equal deleted inserted replaced
23449:c763214a8260 23450:855122b993da
247 tmp_max = tmp; 247 tmp_max = tmp;
248 abs_max = abs_tmp; 248 abs_max = abs_tmp;
249 } 249 }
250 } 250 }
251 251
252 idx_arg.elem (j) = octave::math::isnan (tmp_max) ? 0 : idx_j; 252 idx_arg.elem (j) = (octave::math::isnan (tmp_max) ? 0 : idx_j);
253 if (abs_max != 0.) 253 if (abs_max != 0.)
254 nel++; 254 nel++;
255 } 255 }
256 256
257 result = SparseComplexMatrix (1, nc, nel); 257 result = SparseComplexMatrix (1, nc, nel);
404 tmp_min = tmp; 404 tmp_min = tmp;
405 abs_min = abs_tmp; 405 abs_min = abs_tmp;
406 } 406 }
407 } 407 }
408 408
409 idx_arg.elem (j) = octave::math::isnan (tmp_min) ? 0 : idx_j; 409 idx_arg.elem (j) = (octave::math::isnan (tmp_min) ? 0 : idx_j);
410 if (abs_min != 0.) 410 if (abs_min != 0.)
411 nel++; 411 nel++;
412 } 412 }
413 413
414 result = SparseComplexMatrix (1, nc, nel); 414 result = SparseComplexMatrix (1, nc, nel);