lapack.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. /* Kernel Independent Fast Multipole Method
  2. Copyright (C) 2004 Lexing Ying, New York University
  3. This program is free software; you can redistribute it and/or modify
  4. it under the terms of the GNU General Public License as published by
  5. the Free Software Foundation; either version 2, or (at your option)
  6. any later version.
  7. This program is distributed in the hope that it will be useful, but WITHOUT
  8. ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  9. FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
  10. for more details.
  11. You should have received a copy of the GNU General Public License
  12. along with this program; see the file COPYING. If not, write to the Free
  13. Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  14. 02111-1307, USA. */
  15. #ifndef _SCTL_LAPACK_H_
  16. #define _SCTL_LAPACK_H_
  17. // EXTERN_C_BEGIN
  18. extern "C" {
  19. void sgesvd_(const char* JOBU, const char* JOBVT, const int* M, const int* N, float* A, const int* LDA, float* S, float* U, const int* LDU, float* VT, const int* LDVT, float* WORK, const int* LWORK, int* INFO);
  20. /*! DGESVD computes the singular value decomposition (SVD) of a real
  21. * M-by-N matrix A, optionally computing the left and/or right singular
  22. * vectors. The SVD is written
  23. *
  24. * A = U * SIGMA * transpose(V)
  25. *
  26. * where SIGMA is an M-by-N matrix which is zero except for its
  27. * min(m,n) diagonal elements, U is an M-by-M orthogonal matrix, and
  28. * V is an N-by-N orthogonal matrix. The diagonal elements of SIGMA
  29. * are the singular values of A; they are real and non-negative, and
  30. * are returned in descending order. The first min(m,n) columns of
  31. * U and V are the left and right singular vectors of A.
  32. *
  33. * See http://www.netlib.org/lapack/double/dgesvd.f for more information
  34. */
  35. void dgesvd_(const char* JOBU, const char* JOBVT, const int* M, const int* N, double* A, const int* LDA, double* S, double* U, const int* LDU, double* VT, const int* LDVT, double* WORK, const int* LWORK, int* INFO);
  36. }
  37. // EXTERN_C_END
  38. #endif