taiya / dgp

Digital Geometry Processing - Fall 2016 - University of Victoria
38 stars 11 forks source link

Problem in constructing SparseMatrix #3

Closed xuzheng0927 closed 7 years ago

xuzheng0927 commented 7 years ago

I simply have:

Eigen::SparseMatrix<double> G(cloud.n_vertices(), cloud.n_vertices());

When I ran make, I got:

error: no template named 'SparseMatrix' in namespace 'Eigen'; did you mean 'SparseMatrixBase'?

Is the Eigen library in the repo an old version?

nlguillemot commented 7 years ago

Eigen isn't in the repo, it's a third-party dependency that you install yourself. Maybe you just need to include a header, like #include <Eigen/Sparse>

https://github.com/ataiya/dgp/wiki/Compiling-in-Ubuntu-15.04
https://github.com/ataiya/dgp/wiki/Compiling-in-OSX
xuzheng0927 commented 7 years ago

Yeah I am able to construct it now. Closing the issue.