svd.h 735 B

1234567891011121314151617181920212223242526
  1. //THIS DEPENDS ON BLAS. WHY? WHY NOT EIGEN?
  2. //#ifndef IGL_SVD_H
  3. //#define IGL_SVD_H
  4. //namespace igl
  5. //{
  6. // // Compute 3x3 SVD using lapack's dgesdd_ function
  7. // //
  8. // // Input:
  9. // // a pointer to 3x3 matrix in COLUMN MAJOR order
  10. // // Outputs:
  11. // // u pointer to 3x3 matrix in COLUMN MAJOR order
  12. // // s pointer to 3 vector
  13. // // vt pointer to 3x3 matrix in COLUMN MAJOR order, or think of this as v in
  14. // // row-major order
  15. // // Returns true on success, false on failure
  16. // //
  17. // // Known bugs: This only compiles on Mac and depends on Lapack rather than eigen
  18. // bool svd3x3(double * a, double * u, double * s, double * vt);
  19. //};
  20. //
  21. //#ifdef IGL_HEADER_ONLY
  22. //#include "svd.cpp"
  23. //#endif
  24. //
  25. //#endif