mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-21 07:19:46 +08:00
Fix shadowing typedefs
This commit is contained in:
parent
98728312c8
commit
5c73c9223a
@ -66,7 +66,6 @@ template<typename Derived>
|
|||||||
inline typename MatrixBase<Derived>::EigenvaluesReturnType
|
inline typename MatrixBase<Derived>::EigenvaluesReturnType
|
||||||
MatrixBase<Derived>::eigenvalues() const
|
MatrixBase<Derived>::eigenvalues() const
|
||||||
{
|
{
|
||||||
typedef typename internal::traits<Derived>::Scalar Scalar;
|
|
||||||
return internal::eigenvalues_selector<Derived, NumTraits<Scalar>::IsComplex>::run(derived());
|
return internal::eigenvalues_selector<Derived, NumTraits<Scalar>::IsComplex>::run(derived());
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -88,7 +87,6 @@ template<typename MatrixType, unsigned int UpLo>
|
|||||||
EIGEN_DEVICE_FUNC inline typename SelfAdjointView<MatrixType, UpLo>::EigenvaluesReturnType
|
EIGEN_DEVICE_FUNC inline typename SelfAdjointView<MatrixType, UpLo>::EigenvaluesReturnType
|
||||||
SelfAdjointView<MatrixType, UpLo>::eigenvalues() const
|
SelfAdjointView<MatrixType, UpLo>::eigenvalues() const
|
||||||
{
|
{
|
||||||
typedef typename SelfAdjointView<MatrixType, UpLo>::PlainObject PlainObject;
|
|
||||||
PlainObject thisAsMatrix(*this);
|
PlainObject thisAsMatrix(*this);
|
||||||
return SelfAdjointEigenSolver<PlainObject>(thisAsMatrix, false).eigenvalues();
|
return SelfAdjointEigenSolver<PlainObject>(thisAsMatrix, false).eigenvalues();
|
||||||
}
|
}
|
||||||
|
@ -95,7 +95,7 @@ bool JacobiRotation<Scalar>::makeJacobi(const RealScalar& x, const Scalar& y, co
|
|||||||
{
|
{
|
||||||
using std::sqrt;
|
using std::sqrt;
|
||||||
using std::abs;
|
using std::abs;
|
||||||
typedef typename NumTraits<Scalar>::Real RealScalar;
|
|
||||||
RealScalar deno = RealScalar(2)*abs(y);
|
RealScalar deno = RealScalar(2)*abs(y);
|
||||||
if(deno < (std::numeric_limits<RealScalar>::min)())
|
if(deno < (std::numeric_limits<RealScalar>::min)())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user