mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Fix my typo in MatrixPowerBase.h, no effect on the flow.
This commit is contained in:
@@ -38,8 +38,8 @@ inline int binary_powering_cost(T p, int* squarings)
|
||||
{
|
||||
int applyings=0, tmp;
|
||||
|
||||
if (frexp(p, squarings) != 0.5);
|
||||
--*squarings;
|
||||
frexp(p, squarings);
|
||||
--*squarings;
|
||||
|
||||
while (std::frexp(p, &tmp), tmp > 0) {
|
||||
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
|
||||
|
||||
template<typename MatrixType, int UpLo = Upper> class MatrixPowerTriangularAtomic
|
||||
template<typename MatrixType, int UpLo=Upper> class MatrixPowerTriangularAtomic
|
||||
{
|
||||
private:
|
||||
typedef typename MatrixType::Scalar Scalar;
|
||||
|
||||
Reference in New Issue
Block a user