blob: 87195295e92ad5df3676547128bbb1367db39021 [file]
// SPDX-FileCopyrightText: The Eigen Authors
// SPDX-License-Identifier: MPL-2.0
#define EIGEN_NO_STATIC_ASSERT
#include "../Eigen/Cholesky"
// A decomposition is an EigenBase without evalTo(): assigning it used to compile and recurse without end.
int main() {
Eigen::Matrix2d matrix = Eigen::Matrix2d::Identity();
Eigen::LLT<Eigen::Matrix2d> llt(matrix);
Eigen::Matrix2d result;
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
result = llt;
#else
result = llt.matrixLLT();
#endif
return result.isIdentity() ? 0 : 1;
}