full.h 615 B

1234567891011121314151617181920212223242526
  1. #ifndef IGL_FULL_H
  2. #define IGL_FULL_H
  3. #include "igl_inline.h"
  4. #define EIGEN_YES_I_KNOW_SPARSE_MODULE_IS_NOT_STABLE_YET
  5. #include <Eigen/Dense>
  6. #include <Eigen/Sparse>
  7. namespace igl
  8. {
  9. // Convert a sparsematrix into a full one
  10. // Templates:
  11. // T should be a eigen sparse matrix primitive type like int or double
  12. // Input:
  13. // A m by n sparse matrix
  14. // Output:
  15. // B m by n dense/full matrix
  16. template <typename T>
  17. IGL_INLINE void full(
  18. const Eigen::SparseMatrix<T> & A,
  19. Eigen::Matrix<T,Eigen::Dynamic,Eigen::Dynamic> & B);
  20. }
  21. #ifdef IGL_HEADER_ONLY
  22. # include "full.cpp"
  23. #endif
  24. #endif