Mercurial > octave
view .gitattributes @ 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 | c6f9ff84dc84 |
children |