Mercurial > octave
changeset 29830:0474c3a27d16
xpow.cc: Rename variable "atmp" to "acplx" for clarity of code.
* xpow.cc: Rename variable "atmp" to "acplx" for clarity of code.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 28 Jun 2021 11:12:23 -0700 |
parents | 212322c0e44e |
children | ef138252af51 |
files | libinterp/corefcn/xpow.cc |
diffstat | 1 files changed, 39 insertions(+), 39 deletions(-) [+] |
line wrap: on
line diff
--- a/libinterp/corefcn/xpow.cc Mon Jun 28 10:54:34 2021 -0700 +++ b/libinterp/corefcn/xpow.cc Mon Jun 28 11:12:23 2021 -0700 @@ -100,9 +100,9 @@ if (a < 0.0 && ! xisint (b)) { - Complex atmp (a); - - return std::pow (atmp, b); + Complex acplx (a); + + return std::pow (acplx, b); } else retval = std::pow (a, b); @@ -665,14 +665,14 @@ if (a < 0.0 && ! b.all_integers (d1, d2)) { - Complex atmp (a); + Complex acplx (a); ComplexMatrix result (nr, nc); for (octave_idx_type j = 0; j < nc; j++) for (octave_idx_type i = 0; i < nr; i++) { octave_quit (); - result(i, j) = std::pow (atmp, b(i, j)); + result(i, j) = std::pow (acplx, b(i, j)); } retval = result; @@ -702,13 +702,13 @@ octave_idx_type nc = b.cols (); ComplexMatrix result (nr, nc); - Complex atmp (a); + Complex acplx (a); for (octave_idx_type j = 0; j < nc; j++) for (octave_idx_type i = 0; i < nr; i++) { octave_quit (); - result(i, j) = std::pow (atmp, b(i, j)); + result(i, j) = std::pow (acplx, b(i, j)); } return result; @@ -778,9 +778,9 @@ { octave_quit (); - Complex atmp (a(i, j)); - - result(i, j) = std::pow (atmp, b); + Complex acplx (a(i, j)); + + result(i, j) = std::pow (acplx, b); } retval = result; @@ -841,9 +841,9 @@ for (octave_idx_type i = 0; i < nr; i++) { octave_quit (); - Complex atmp (a(i, j)); - Complex btmp (b(i, j)); - complex_result(i, j) = std::pow (atmp, btmp); + Complex acplx (a(i, j)); + Complex bcplx (b(i, j)); + complex_result(i, j) = std::pow (acplx, bcplx); } retval = complex_result; @@ -1133,12 +1133,12 @@ if (a < 0.0 && ! b.all_integers ()) { - Complex atmp (a); + Complex acplx (a); ComplexNDArray result (b.dims ()); for (octave_idx_type i = 0; i < b.numel (); i++) { octave_quit (); - result(i) = std::pow (atmp, b(i)); + result(i) = std::pow (acplx, b(i)); } retval = result; @@ -1188,8 +1188,8 @@ for (octave_idx_type i = 0; i < a.numel (); i++) { octave_quit (); - Complex atmp (a(i)); - result(i) = std::pow (atmp, b); + Complex acplx (a(i)); + result(i) = std::pow (acplx, b); } retval = result; @@ -1289,8 +1289,8 @@ for (octave_idx_type i = 0; i < len; i++) { octave_quit (); - Complex atmp (a(i)); - complex_result(i) = std::pow (atmp, b(i)); + Complex acplx (a(i)); + complex_result(i) = std::pow (acplx, b(i)); } retval = complex_result; @@ -1513,9 +1513,9 @@ if (a < 0.0 && ! xisint (b)) { - FloatComplex atmp (a); - - return std::pow (atmp, b); + FloatComplex acplx (a); + + return std::pow (acplx, b); } else retval = std::pow (a, b); @@ -2069,14 +2069,14 @@ if (a < 0.0 && ! b.all_integers (d1, d2)) { - FloatComplex atmp (a); + FloatComplex acplx (a); FloatComplexMatrix result (nr, nc); for (octave_idx_type j = 0; j < nc; j++) for (octave_idx_type i = 0; i < nr; i++) { octave_quit (); - result(i, j) = std::pow (atmp, b(i, j)); + result(i, j) = std::pow (acplx, b(i, j)); } retval = result; @@ -2106,13 +2106,13 @@ octave_idx_type nc = b.cols (); FloatComplexMatrix result (nr, nc); - FloatComplex atmp (a); + FloatComplex acplx (a); for (octave_idx_type j = 0; j < nc; j++) for (octave_idx_type i = 0; i < nr; i++) { octave_quit (); - result(i, j) = std::pow (atmp, b(i, j)); + result(i, j) = std::pow (acplx, b(i, j)); } return result; @@ -2136,9 +2136,9 @@ { octave_quit (); - FloatComplex atmp (a(i, j)); - - result(i, j) = std::pow (atmp, b); + FloatComplex acplx (a(i, j)); + + result(i, j) = std::pow (acplx, b); } retval = result; @@ -2199,9 +2199,9 @@ for (octave_idx_type i = 0; i < nr; i++) { octave_quit (); - FloatComplex atmp (a(i, j)); - FloatComplex btmp (b(i, j)); - complex_result(i, j) = std::pow (atmp, btmp); + FloatComplex acplx (a(i, j)); + FloatComplex bcplx (b(i, j)); + complex_result(i, j) = std::pow (acplx, bcplx); } retval = complex_result; @@ -2450,12 +2450,12 @@ if (a < 0.0 && ! b.all_integers ()) { - FloatComplex atmp (a); + FloatComplex acplx (a); FloatComplexNDArray result (b.dims ()); for (octave_idx_type i = 0; i < b.numel (); i++) { octave_quit (); - result(i) = std::pow (atmp, b(i)); + result(i) = std::pow (acplx, b(i)); } retval = result; @@ -2506,9 +2506,9 @@ { octave_quit (); - FloatComplex atmp (a(i)); - - result(i) = std::pow (atmp, b); + FloatComplex acplx (a(i)); + + result(i) = std::pow (acplx, b); } retval = result; @@ -2608,8 +2608,8 @@ for (octave_idx_type i = 0; i < len; i++) { octave_quit (); - FloatComplex atmp (a(i)); - complex_result(i) = std::pow (atmp, b(i)); + FloatComplex acplx (a(i)); + complex_result(i) = std::pow (acplx, b(i)); } retval = complex_result;