mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
committed by
Rasmus Munk Larsen
parent
2a2456c873
commit
875fb48f0a
@@ -21,7 +21,6 @@ void linearStructure(const MatrixType& m) {
|
|||||||
CwiseUnaryOp.h, CwiseBinaryOp.h, SelfCwiseBinaryOp.h
|
CwiseUnaryOp.h, CwiseBinaryOp.h, SelfCwiseBinaryOp.h
|
||||||
*/
|
*/
|
||||||
typedef typename MatrixType::Scalar Scalar;
|
typedef typename MatrixType::Scalar Scalar;
|
||||||
typedef typename MatrixType::RealScalar RealScalar;
|
|
||||||
|
|
||||||
Index rows = m.rows();
|
Index rows = m.rows();
|
||||||
Index cols = m.cols();
|
Index cols = m.cols();
|
||||||
|
|||||||
@@ -207,7 +207,6 @@ void testMatrixType(const MatrixType& m) {
|
|||||||
const Index rows = m.rows();
|
const Index rows = m.rows();
|
||||||
const Index cols = m.cols();
|
const Index cols = m.cols();
|
||||||
typedef typename MatrixType::Scalar Scalar;
|
typedef typename MatrixType::Scalar Scalar;
|
||||||
typedef typename MatrixType::RealScalar RealScalar;
|
|
||||||
|
|
||||||
Scalar s1 = internal::random<Scalar>();
|
Scalar s1 = internal::random<Scalar>();
|
||||||
|
|
||||||
|
|||||||
@@ -115,7 +115,7 @@ void evalSolverSugarFunction(const POLYNOMIAL& pols, const ROOTS& roots, const R
|
|||||||
|
|
||||||
for (size_t i = 0; i < calc_realRoots.size(); ++i) {
|
for (size_t i = 0; i < calc_realRoots.size(); ++i) {
|
||||||
bool found = false;
|
bool found = false;
|
||||||
for (size_t j = 0; j < real_roots.size() && !found; ++j) {
|
for (Index j = 0; j < real_roots.size() && !found; ++j) {
|
||||||
if (internal::isApprox(calc_realRoots[i], real_roots[j], psPrec)) {
|
if (internal::isApprox(calc_realRoots[i], real_roots[j], psPrec)) {
|
||||||
found = true;
|
found = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user