HMLP: High-performance Machine Learning Primitives
blas.h
1 /* Kernel Independent Fast Multipole Method
2  Copyright (C) 2004 Lexing Ying, New York University
3 
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8 
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 for more details.
13 
14 You should have received a copy of the GNU General Public License
15 along with this program; see the file COPYING. If not, write to the Free
16 Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
17 02111-1307, USA. */
18 
19 #ifndef _BLAS_H_
20 #define _BLAS_H_
21 
22 extern "C" {
26 void saxpy_(int* N, float* ALPHA, float* X, int* INCX, float* Y, int* INCY);
27 void daxpy_(int* N, double* ALPHA, double* X, int* INCX, double* Y, int* INCY);
40 void sgemm_(char* TRANSA, char* TRANSB, int* M, int* N, int* K, float* ALPHA, float* A, int* LDA, float* B, int* LDB, float* BETA, float* C, int* LDC);
41 void dgemm_(char* TRANSA, char* TRANSB, int* M, int* N, int* K, double* ALPHA, double* A, int* LDA, double* B, int* LDB, double* BETA, double* C, int* LDC);
49 void sgemv_(char* TRANS, int* M, int* N, float* ALPHA, float* A, int* LDA, float* X, int* INCX, float* BETA, float* Y, int* INCY);
50 void dgemv_(char* TRANS, int* M, int* N, double* ALPHA, double* A, int* LDA, double* X, int* INCX, double* BETA, double* Y, int* INCY);
59 void sger_(int* M, int* N, float* ALPHA, float* X, int* INCX, float* Y, int* INCY, float* A, int* LDA);
60 void dger_(int* M, int* N, double* ALPHA, double* X, int* INCX, double* Y, int* INCY, double* A, int* LDA);
64 void sscal_(int* N, float* ALPHA, float* X, int* INCX);
65 void dscal_(int* N, double* ALPHA, double* X, int* INCX);
66 }
67 
68 #endif