XCSF 1.4.8
XCSF learning classifier system
Loading...
Searching...
No Matches
blas.h
Go to the documentation of this file.
1/*
2 * This program is free software: you can redistribute it and/or modify
3 * it under the terms of the GNU General Public License as published by
4 * the Free Software Foundation, either version 3 of the License, or
5 * (at your option) any later version.
6 *
7 * This program is distributed in the hope that it will be useful,
8 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10 * GNU General Public License for more details.
11 *
12 * You should have received a copy of the GNU General Public License
13 * along with this program. If not, see <http://www.gnu.org/licenses/>.
14 */
15
24#pragma once
25
26void
27blas_gemm(const int TA, const int TB, const int M, const int N, const int K,
28 const double ALPHA, const double *A, const int lda, const double *B,
29 const int ldb, const double BETA, double *C, const int ldc);
30
31void
32blas_axpy(const int N, const double ALPHA, const double *X, const int INCX,
33 double *Y, const int INCY);
34
35void
36blas_mul(const int N, const double *X, const int INCX, double *Y,
37 const int INCY);
38
39void
40blas_scal(const int N, const double ALPHA, double *X, const int INCX);
41
42void
43blas_fill(const int N, const double ALPHA, double *X, const int INCX);
44
45double
46blas_dot(const int N, const double *X, const int INCX, const double *Y,
47 const int INCY);
48
49double
50blas_sum(const double *X, const int N);
void blas_fill(const int N, const double ALPHA, double *X, const int INCX)
Fills the vector X with the value ALPHA.
Definition blas.c:181
void blas_scal(const int N, const double ALPHA, double *X, const int INCX)
Scales vector X by the scalar ALPHA and overwrites it with the result.
Definition blas.c:160
double blas_sum(const double *X, const int N)
Returns the sum of the vector X.
Definition blas.c:232
double blas_dot(const int N, const double *X, const int INCX, const double *Y, const int INCY)
Computes the dot product of two vectors.
Definition blas.c:198
void blas_axpy(const int N, const double ALPHA, const double *X, const int INCX, double *Y, const int INCY)
Multiplies vector X by the scalar ALPHA and adds it to the vector Y.
Definition blas.c:138
void blas_mul(const int N, const double *X, const int INCX, double *Y, const int INCY)
Multiplies vector X by the vector Y and stores the result in vector Y.
Definition blas.c:217
void blas_gemm(const int TA, const int TB, 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)
Performs the matrix-matrix multiplication: .
Definition blas.c:108