This commit is contained in:
Thomas Capricelli
2009-12-01 21:07:20 +01:00
40 changed files with 292 additions and 202 deletions

View File

@@ -188,7 +188,7 @@ template<typename _Scalar> class AlignedVector3
}
template<typename Derived>
inline bool isApprox(const MatrixBase<Derived>& other, RealScalar eps=precision<Scalar>()) const
inline bool isApprox(const MatrixBase<Derived>& other, RealScalar eps=dummy_precision<Scalar>()) const
{
return m_coeffs.template start<3>().isApprox(other,eps);
}

View File

@@ -272,7 +272,7 @@ void MatrixExponential<MatrixType>::computeUV(float)
} else {
const float maxnorm = 3.925724783138660f;
m_squarings = std::max(0, (int)ceil(log2(m_l1norm / maxnorm)));
MatrixType A = *m_M / std::pow(Scalar(2), m_squarings);
MatrixType A = *m_M / std::pow(Scalar(2), Scalar(m_squarings));
pade7(A);
}
}
@@ -291,7 +291,7 @@ void MatrixExponential<MatrixType>::computeUV(double)
} else {
const double maxnorm = 5.371920351148152;
m_squarings = std::max(0, (int)ceil(log2(m_l1norm / maxnorm)));
MatrixType A = *m_M / std::pow(Scalar(2), m_squarings);
MatrixType A = *m_M / std::pow(Scalar(2), Scalar(m_squarings));
pade13(A);
}
}

View File

@@ -46,7 +46,7 @@ public:
* flags \a flags. */
SkylineInplaceLU(MatrixType& matrix, int flags = 0)
: /*m_matrix(matrix.rows(), matrix.cols()),*/ m_flags(flags), m_status(0), m_lu(matrix) {
m_precision = RealScalar(0.1) * Eigen::precision<RealScalar > ();
m_precision = RealScalar(0.1) * Eigen::dummy_precision<RealScalar > ();
m_lu.IsRowMajor ? computeRowMajor() : compute();
}

View File

@@ -589,7 +589,7 @@ public:
m_data.squeeze();
}
void prune(Scalar reference, RealScalar epsilon = precision<RealScalar > ()) {
void prune(Scalar reference, RealScalar epsilon = dummy_precision<RealScalar > ()) {
//TODO
}

View File

@@ -206,7 +206,7 @@ public:
memset(m_lowerProfile, 0, m_diagSize * sizeof (int));
}
void prune(Scalar reference, RealScalar epsilon = precision<RealScalar>()) {
void prune(Scalar reference, RealScalar epsilon = dummy_precision<RealScalar>()) {
//TODO
}

View File

@@ -1,8 +1,3 @@
include(EigenTesting)
enable_testing()
find_package(Adolc)
include_directories(../../test)

View File

@@ -47,7 +47,11 @@ complex<long double> promote(long double x) { return complex<long double>( x);
cerr <<"idx\ttruth\t\tvalue\t|dif|=\n";
for (size_t k0=0;k0<size_t(fftbuf.size());++k0) {
complex<long double> acc = 0;
#ifdef _GNU_SOURCE
long double phinc = -2.*k0* M_PIl / timebuf.size();
#else
long double phinc = -2.*k0* M_PI / timebuf.size();
#endif
for (size_t k1=0;k1<size_t(timebuf.size());++k1) {
acc += promote( timebuf[k1] ) * exp( complex<long double>(0,k1*phinc) );
}