Commit 522d080f authored by Matteo Signer's avatar Matteo Signer

Fix build

parent 21677ac7
......@@ -109,7 +109,7 @@ int main() {
std::cout << "Difference in L2-Norms: " << (std::sqrt(err1.sum()) - std::sqrt(err2.sum())) << std::endl;
// computes the condition number of a matrix
auto cond = [](MatrixXd &A){
auto cond = [](const MatrixXd &A){
JacobiSVD<MatrixXd> svd(A);
auto sigma = svd.singularValues();
return sigma[0]/sigma[sigma.size()-1];
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment