prepare_lhs.h 653 B

12345678910111213141516171819202122232425262728
  1. #ifndef IGL_PREPARE_LHS_H
  2. #define IGL_PREPARE_LHS_H
  3. #include <igl/igl_inline.h>
  4. #include <mex.h>
  5. #include <Eigen/Dense>
  6. namespace igl
  7. {
  8. // Writes out a matrix as a double
  9. //
  10. // Inputs:
  11. // prhs points to rhs argument
  12. // Outputs:
  13. // V M by N matrix
  14. template <typename DerivedV>
  15. IGL_INLINE void prepare_lhs_double(
  16. const Eigen::PlainObjectBase<DerivedV> & V,
  17. mxArray *plhs[]);
  18. // Writes out a matrix and adds 1
  19. template <typename DerivedV>
  20. IGL_INLINE void prepare_lhs_index(
  21. const Eigen::PlainObjectBase<DerivedV> & V,
  22. mxArray *plhs[]);
  23. };
  24. #ifndef IGL_STATIC_LIBRARY
  25. # include "prepare_lhs.cpp"
  26. #endif
  27. #endif