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

@@ -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
}