svd.h 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. // This file is part of libigl, a simple c++ geometry processing library.
  2. //
  3. // Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
  4. //
  5. // This Source Code Form is subject to the terms of the Mozilla Public License
  6. // v. 2.0. If a copy of the MPL was not distributed with this file, You can
  7. // obtain one at http://mozilla.org/MPL/2.0/.
  8. //THIS DEPENDS ON BLAS. WHY? WHY NOT EIGEN?
  9. //#ifndef IGL_SVD_H
  10. //#define IGL_SVD_H
  11. //namespace igl
  12. //{
  13. // // Compute 3x3 SVD using lapack's dgesdd_ function
  14. // //
  15. // // Input:
  16. // // a pointer to 3x3 matrix in COLUMN MAJOR order
  17. // // Outputs:
  18. // // u pointer to 3x3 matrix in COLUMN MAJOR order
  19. // // s pointer to 3 vector
  20. // // vt pointer to 3x3 matrix in COLUMN MAJOR order, or think of this as v in
  21. // // row-major order
  22. // // Returns true on success, false on failure
  23. // //
  24. // // Known bugs: This only compiles on Mac and depends on Lapack rather than eigen
  25. // bool svd3x3(double * a, double * u, double * s, double * vt);
  26. //};
  27. //
  28. //#ifdef IGL_HEADER_ONLY
  29. //#include "svd.cpp"
  30. //#endif
  31. //
  32. //#endif