blas.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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_BLAS_H_
  16. #define _SCTL_BLAS_H_
  17. extern "C" {
  18. /*! DGEMM performs one of the matrix-matrix operations
  19. *
  20. * C := alpha*op( A )*op( B ) + beta*C,
  21. *
  22. * where op( X ) is one of
  23. *
  24. * op( X ) = X or op( X ) = X',
  25. *
  26. * alpha and beta are scalars, and A, B and C are matrices, with op( A )
  27. * an m by k matrix, op( B ) a k by n matrix and C an m by n matrix.
  28. * See http://www.netlib.org/blas/dgemm.f for more information.
  29. */
  30. void sgemm_(const char* TRANSA, const char* TRANSB, const int* M, const int* N, const int* K, const float* ALPHA, const float* A, const int* LDA, const float* B, const int* LDB, const float* BETA, float* C, const int* LDC);
  31. void dgemm_(const char* TRANSA, const char* TRANSB, const int* M, const int* N, const int* K, const double* ALPHA, const double* A, const int* LDA, const double* B, const int* LDB, const double* BETA, double* C, const int* LDC);
  32. }
  33. #endif