comparison libinterp/corefcn/sparse-xpow.cc @ 27277:db687716fed6

style fixes: generally aim to break long lines before operators, not after Files affected: Table.cc, dw-main-window.cc, file-editor-tab.cc, file-editor.cc, main-window.cc, build-env.in.cc, __ichol__.cc, __magick_read__.cc, besselj.cc, bsxfun.cc, cellfun.cc, data.cc, dlmread.cc, error.cc, fcn-info.cc, file-io.cc, gl-render.cc, gl2ps-print.cc, graphics.cc, load-save.cc, ls-mat4.cc, ls-mat5.cc, matrix_type.cc, mex.cc, oct-stream.cc, pr-output.cc, quadcc.cc, rand.cc, sparse-xpow.cc, syscalls.cc, sysdep.cc, utils.cc, __init_fltk__.cc, __init_gnuplot__.cc, chol.cc, fftw.cc, qr.cc, cdef-class.cc, cdef-object.cc, ov-bool-sparse.cc, ov-cell.cc, ov-class.cc, ov-cx-diag.cc, ov-cx-sparse.cc, ov-fcn-handle.cc, ov-flt-cx-diag.cc, ov-flt-re-diag.cc, ov-str-mat.cc, ov-struct.cc, ov.cc, op-b-sbm.cc, op-bm-sbm.cc, op-cdm-cdm.cc, op-scm-scm.cc, op-sm-scm.cc, op-sm-sm.cc, jit-typeinfo.cc, pt-cbinop.cc, pt-cbinop.h, pt-eval.cc, CSparse.cc, MatrixType.cc, dSparse.cc, eigs-base.cc, lo-specfun.cc, oct-fftw.cc, cmd-edit.cc, lo-regexp.cc, oct-inttypes.h, url-transfer.cc, mkoctfile.in.cc, and octave-svgconvert.cc.
author John W. Eaton <jwe@octave.org>
date Sun, 21 Jul 2019 10:21:01 -0400
parents 00f796120a6d
children b442ec6dda5c
comparison
equal deleted inserted replaced
27276:7455523fdf01 27277:db687716fed6
447 for (octave_idx_type j = 0; j < nc; j++) 447 for (octave_idx_type j = 0; j < nc; j++)
448 { 448 {
449 for (octave_idx_type i = a.cidx (j); i < a.cidx (j+1); i++) 449 for (octave_idx_type i = a.cidx (j); i < a.cidx (j+1); i++)
450 { 450 {
451 octave_quit (); 451 octave_quit ();
452 complex_result.xelem (a.ridx (i), j) = 452 complex_result.xelem (a.ridx (i), j)
453 std::pow (Complex (a.data (i)), Complex (b(a.ridx (i), j))); 453 = std::pow (Complex (a.data (i)), Complex (b(a.ridx (i), j)));
454 } 454 }
455 } 455 }
456 complex_result.maybe_compress (true); 456 complex_result.maybe_compress (true);
457 retval = complex_result; 457 retval = complex_result;
458 } 458 }
595 { 595 {
596 for (octave_idx_type j = 0; j < nc; j++) 596 for (octave_idx_type j = 0; j < nc; j++)
597 for (octave_idx_type i = a.cidx (j); i < a.cidx (j+1); i++) 597 for (octave_idx_type i = a.cidx (j); i < a.cidx (j+1); i++)
598 { 598 {
599 octave_quit (); 599 octave_quit ();
600 result (a.ridx (i), j) = 600 result (a.ridx (i), j)
601 std::pow (a.data (i), static_cast<int> (b)); 601 = std::pow (a.data (i), static_cast<int> (b));
602 } 602 }
603 } 603 }
604 else 604 else
605 { 605 {
606 for (octave_idx_type j = 0; j < nc; j++) 606 for (octave_idx_type j = 0; j < nc; j++)