mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-11 19:29:02 +08:00
Remove a useless variable in blueNorm
This commit is contained in:
parent
d7f3cfb56e
commit
84637ca58c
@ -33,7 +33,6 @@ template<typename Derived>
|
|||||||
inline typename NumTraits<typename traits<Derived>::Scalar>::Real
|
inline typename NumTraits<typename traits<Derived>::Scalar>::Real
|
||||||
blueNorm_impl(const EigenBase<Derived>& _vec)
|
blueNorm_impl(const EigenBase<Derived>& _vec)
|
||||||
{
|
{
|
||||||
typedef typename Derived::Scalar Scalar;
|
|
||||||
typedef typename Derived::RealScalar RealScalar;
|
typedef typename Derived::RealScalar RealScalar;
|
||||||
typedef typename Derived::Index Index;
|
typedef typename Derived::Index Index;
|
||||||
using std::pow;
|
using std::pow;
|
||||||
@ -47,7 +46,7 @@ blueNorm_impl(const EigenBase<Derived>& _vec)
|
|||||||
if(!initialized)
|
if(!initialized)
|
||||||
{
|
{
|
||||||
int ibeta, it, iemin, iemax, iexp;
|
int ibeta, it, iemin, iemax, iexp;
|
||||||
RealScalar abig, eps;
|
RealScalar eps;
|
||||||
// This program calculates the machine-dependent constants
|
// This program calculates the machine-dependent constants
|
||||||
// bl, b2, slm, s2m, relerr overfl
|
// bl, b2, slm, s2m, relerr overfl
|
||||||
// from the "basic" machine-dependent numbers
|
// from the "basic" machine-dependent numbers
|
||||||
@ -75,7 +74,6 @@ blueNorm_impl(const EigenBase<Derived>& _vec)
|
|||||||
overfl = rbig*s2m; // overflow boundary for abig
|
overfl = rbig*s2m; // overflow boundary for abig
|
||||||
eps = RealScalar(pow(double(ibeta), 1-it));
|
eps = RealScalar(pow(double(ibeta), 1-it));
|
||||||
relerr = sqrt(eps); // tolerance for neglecting asml
|
relerr = sqrt(eps); // tolerance for neglecting asml
|
||||||
abig = RealScalar(1.0/eps - 1.0);
|
|
||||||
initialized = true;
|
initialized = true;
|
||||||
}
|
}
|
||||||
Index n = vec.size();
|
Index n = vec.size();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user