Mercurial > octave
view CITATION @ 29831:ef138252af51
xpow.cc: Use static_cast<int> in a consistent manner for exponent.
* xpow.cc (xpow (DiagMatrix, double), xpow (FloatDiagMatrix, float)): Cast
exponent to integer just once and use that result (variable bint) in
innermost for loop calling std::pow.
* xpow.cc (elem_xpow (NDArray, double), elem_xpow (FloatNDArray, float)):
Re-write code to test for "xisint (b)" rather than "! xisint (b)" to match
stytle of all other functions.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 28 Jun 2021 11:50:03 -0700 |
parents | 844b3b9bab7a |
children | 8d7671609955 |
line wrap: on
line source
To cite GNU Octave in publications use: John W. Eaton, David Bateman, Søren Hauberg, Rik Wehbring (2020). GNU Octave version 6.1.0 manual: a high-level interactive language for numerical computations. URL https://www.gnu.org/software/octave/doc/v6.1.0/ A BibTeX entry for LaTeX users is: @manual{, title = {{GNU Octave} version 6.1.0 manual: a high-level interactive language for numerical computations}, author = {John W. Eaton and David Bateman and S{\o}ren Hauberg and Rik Wehbring}, year = {2020}, url = {https://www.gnu.org/software/octave/doc/v6.1.0/}, } We have invested a lot of time and effort in creating GNU Octave, please cite it when using it. See also 'citation pkgname' for citing Octave packages.