[Insight-users] explicitly instantiate vnl_sparse_matrix

Wei Liu weiliu620 at gmail.com
Tue Oct 15 00:56:30 EDT 2013


Dear ITK users,

Is there a method to explicitly instantiate vnl_sparse_matrix<bool>?
I'm trying to define: vnl_sparse_matrix<bool> mymatrix, but get  error

undefined reference to `vnl_sparse_matrix<bool>::vnl_sparse_matrix()'

I tried to add

template class vnl_sparse_matrix<bool>;

on the top of my main.cxx but it doesn't work. I appreciate any insights.

Wei


More information about the Insight-users mailing list