prepare_lhs.h 815 B

123456789101112131415161718192021222324252627282930313233
  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. // Casts to logical
  19. template <typename DerivedV>
  20. IGL_INLINE void prepare_lhs_logical(
  21. const Eigen::PlainObjectBase<DerivedV> & V,
  22. mxArray *plhs[]);
  23. // Writes out a matrix and adds 1
  24. template <typename DerivedV>
  25. IGL_INLINE void prepare_lhs_index(
  26. const Eigen::PlainObjectBase<DerivedV> & V,
  27. mxArray *plhs[]);
  28. };
  29. #ifndef IGL_STATIC_LIBRARY
  30. # include "prepare_lhs.cpp"
  31. #endif
  32. #endif