mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 03:39:01 +08:00
Fix my typo in MatrixPowerBase.h, no effect on the flow.
This commit is contained in:
parent
dd8034bd1c
commit
d7b1049cab
@ -38,8 +38,8 @@ inline int binary_powering_cost(T p, int* squarings)
|
|||||||
{
|
{
|
||||||
int applyings=0, tmp;
|
int applyings=0, tmp;
|
||||||
|
|
||||||
if (frexp(p, squarings) != 0.5);
|
frexp(p, squarings);
|
||||||
--*squarings;
|
--*squarings;
|
||||||
|
|
||||||
while (std::frexp(p, &tmp), tmp > 0) {
|
while (std::frexp(p, &tmp), tmp > 0) {
|
||||||
p -= std::ldexp(static_cast<T>(0.5), tmp);
|
p -= std::ldexp(static_cast<T>(0.5), tmp);
|
||||||
@ -101,7 +101,7 @@ inline int matrix_power_get_pade_degree(long double normIminusT)
|
|||||||
}
|
}
|
||||||
} // namespace internal
|
} // namespace internal
|
||||||
|
|
||||||
template<typename MatrixType, int UpLo = Upper> class MatrixPowerTriangularAtomic
|
template<typename MatrixType, int UpLo=Upper> class MatrixPowerTriangularAtomic
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
typedef typename MatrixType::Scalar Scalar;
|
typedef typename MatrixType::Scalar Scalar;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user