is_sparse.cpp 619 B

123456789101112131415161718192021
  1. #include "is_sparse.h"
  2. template <typename T>
  3. IGL_INLINE bool igl::is_sparse(
  4. const Eigen::SparseMatrix<T> & A)
  5. {
  6. return true;
  7. }
  8. template <typename DerivedA>
  9. IGL_INLINE bool igl::is_sparse(
  10. const Eigen::PlainObjectBase<DerivedA>& A)
  11. {
  12. return false;
  13. }
  14. #ifndef IGL_HEADER_ONLY
  15. // Explicit template specialization
  16. // generated by autoexplicit.sh
  17. template bool igl::is_sparse<double>(Eigen::SparseMatrix<double, 0, int> const&);
  18. // generated by autoexplicit.sh
  19. template bool igl::is_sparse<Eigen::Matrix<double, -1, -1, 0, -1, -1> >(Eigen::PlainObjectBase<Eigen::Matrix<double, -1, -1, 0, -1, -1> > const&);
  20. #endif