Эх сурвалжийг харах

missing igl inlines

Former-commit-id: c6be87caca2105a966ad039462d630bea54f6da8
Alec Jacobson 11 жил өмнө
parent
commit
ebce0d8cc5
2 өөрчлөгдсөн 0 нэмэгдсэн , 80 устгасан
  1. 0 47
      include/igl/svd.cpp
  2. 0 33
      include/igl/svd.h

+ 0 - 47
include/igl/svd.cpp

@@ -1,47 +0,0 @@
-// This file is part of libigl, a simple c++ geometry processing library.
-// 
-// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
-// 
-// This Source Code Form is subject to the terms of the Mozilla Public License 
-// v. 2.0. If a copy of the MPL was not distributed with this file, You can 
-// obtain one at http://mozilla.org/MPL/2.0/.
-//// This only works on MAC ...
-//#ifdef __APPLE__
-//#include "svd.h"
-//#include <Accelerate/Accelerate.h>
-//#include <cstdlib>
-//#include <cstdio>
-//
-//bool igl::svd3x3(double * a, double * u, double * s, double * vt)
-//{
-//  /* Locals */
-//  int m = 3, n = 3, lda = 3, ldu = 3, ldvt = 3, info, lwork;
-//  double wkopt;
-//  double* work;
-//  /* Local arrays */
-//  /* iwork dimension should be at least 8*min(m,n) */
-//  int iwork[8*3];
-//  //double s[3], u[3*3], vt[3*3];
-//  //double a[3*3] = {8,3,4,1,5,9,6,7,2};
-//  /* Query and allocate the optimal workspace */
-//  lwork = -1;
-//  dgesdd_( 
-//    "Singular vectors",
-//    &m, &n, a, &lda, s, u, &ldu, vt, &ldvt, &wkopt, &lwork, iwork, &info);
-//  lwork = (int)wkopt;
-//  work = (double*)malloc( lwork*sizeof(double) );
-//  /* Compute SVD */
-//  dgesdd_(
-//    "Singular vectors",
-//    &m, &n, a, &lda, s, u, &ldu, vt, &ldvt, work, &lwork, iwork, &info );
-//  /* Check for convergence */
-//  if( info > 0 )
-//  {
-//    printf("The algorithm computing SVD failed to converge.\n" );
-//    return false;
-//  }
-//  /* Free workspace */
-//  free( (void*)work );
-//  return true;
-//}
-//#endif

+ 0 - 33
include/igl/svd.h

@@ -1,33 +0,0 @@
-// This file is part of libigl, a simple c++ geometry processing library.
-// 
-// Copyright (C) 2013 Alec Jacobson <alecjacobson@gmail.com>
-// 
-// This Source Code Form is subject to the terms of the Mozilla Public License 
-// v. 2.0. If a copy of the MPL was not distributed with this file, You can 
-// obtain one at http://mozilla.org/MPL/2.0/.
-//THIS DEPENDS ON BLAS. WHY? WHY NOT EIGEN?
-
-//#ifndef IGL_SVD_H
-//#define IGL_SVD_H
-//namespace igl
-//{
-//  // Compute 3x3 SVD using lapack's dgesdd_ function
-//  //
-//  // Input:
-//  //   a  pointer to 3x3 matrix in COLUMN MAJOR order
-//  // Outputs:
-//  //   u  pointer to 3x3 matrix in COLUMN MAJOR order
-//  //   s  pointer to 3 vector 
-//  //   vt  pointer to 3x3 matrix in COLUMN MAJOR order, or think of this as v in
-//  //     row-major order
-//  // Returns true on success, false on failure
-//  // 
-//  // Known bugs: This only compiles on Mac and depends on Lapack rather than eigen
-//  bool svd3x3(double * a, double * u, double * s, double * vt);
-//};
-//
-//#ifdef IGL_HEADER_ONLY
-//#include "svd.cpp"
-//#endif
-//
-//#endif