以下代码来自 Libigl 的教程 306:http ://libigl.github.io/libigl/tutorial/#eigen-decomposition
........
SparseMatrix<double> L,M;
cotmatrix(V,F,L);
L = (-L).eval(); // WHY?????
massmatrix(V,F,MASSMATRIX_TYPE_DEFAULT,M);
const size_t k = 5;
if(!eigs(L,M,k+1,EIGS_TYPE_SM,U,D))
{
cout<<"failed."<<endl;
}
// Normalize
U = ((U.array()-U.minCoeff())/(U.maxCoeff()-U.minCoeff())).eval();
.......
我不明白 L = (-L).eval();
谁能帮帮我?完整的代码可以在https://github.com/libigl/libigl/blob/master/tutorial/306_EigenDecomposition/main.cpp找到