writeDMAT.h 628 B

12345678910111213141516171819202122232425
  1. #ifndef IGL_WRITEDMAT_H
  2. #define IGL_WRITEDMAT_H
  3. #include "igl_inline.h"
  4. // See writeDMAT.h for a description of the .dmat file type
  5. #include <string>
  6. namespace igl
  7. {
  8. // Write a matrix using ascii dmat file type
  9. //
  10. // Template:
  11. // Mat matrix type that supports .rows(), .cols(), operator(i,j)
  12. // Inputs:
  13. // file_name path to .dmat file
  14. // W eigen matrix containing to-be-written coefficients
  15. // Returns true on success, false on error
  16. //
  17. template <class Mat>
  18. IGL_INLINE bool writeDMAT(const std::string file_name, const Mat & W);
  19. }
  20. #ifdef IGL_HEADER_ONLY
  21. # include "writeDMAT.cpp"
  22. #endif
  23. #endif