Mercurial > hg > segmenter-vamp-plugin
comparison armadillo-3.900.4/include/armadillo_bits/atlas_bones.hpp @ 49:1ec0e2823891
Switch to using subrepo copies of qm-dsp, nnls-chroma, vamp-plugin-sdk; update Armadillo version; assume build without external BLAS/LAPACK
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2013 10:25:24 +0100 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
48:69251e11a913 | 49:1ec0e2823891 |
---|---|
1 // Copyright (C) 2008-2011 NICTA (www.nicta.com.au) | |
2 // Copyright (C) 2008-2011 Conrad Sanderson | |
3 // | |
4 // This Source Code Form is subject to the terms of the Mozilla Public | |
5 // License, v. 2.0. If a copy of the MPL was not distributed with this | |
6 // file, You can obtain one at http://mozilla.org/MPL/2.0/. | |
7 | |
8 | |
9 #ifdef ARMA_USE_ATLAS | |
10 | |
11 | |
12 //! \namespace atlas namespace for ATLAS functions (imported from the global namespace) | |
13 namespace atlas | |
14 { | |
15 | |
16 using ::CblasColMajor; | |
17 using ::CblasNoTrans; | |
18 using ::CblasTrans; | |
19 using ::CblasConjTrans; | |
20 | |
21 #if defined(ARMA_USE_WRAPPER) | |
22 extern "C" | |
23 { | |
24 | |
25 float wrapper_cblas_sdot(const int N, const float *X, const int incX, const float *Y, const int incY); | |
26 double wrapper_cblas_ddot(const int N, const double *X, const int incX, const double *Y, const int incY); | |
27 | |
28 void wrapper_cblas_cdotu_sub(const int N, const void *X, const int incX, const void *Y, const int incY, void *dotu); | |
29 void wrapper_cblas_zdotu_sub(const int N, const void *X, const int incX, const void *Y, const int incY, void *dotu); | |
30 | |
31 | |
32 void wrapper_cblas_sgemv(const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, const int M, const int N, const float alpha, | |
33 const float *A, const int lda, const float *X, const int incX, const float beta, float *Y, const int incY); | |
34 | |
35 void wrapper_cblas_dgemv(const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, const int M, const int N, const double alpha, | |
36 const double *A, const int lda, const double *X, const int incX, const double beta, double *Y, const int incY); | |
37 | |
38 void wrapper_cblas_cgemv(const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, const int M, const int N, const void *alpha, | |
39 const void *A, const int lda, const void *X, const int incX, const void *beta, void *Y, const int incY); | |
40 | |
41 void wrapper_cblas_zgemv(const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, const int M, const int N, const void *alpha, | |
42 const void *A, const int lda, const void *X, const int incX, const void *beta, void *Y, const int incY); | |
43 | |
44 | |
45 | |
46 void wrapper_cblas_sgemm(const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_TRANSPOSE TransB, | |
47 const int M, const int N, const int K, const float alpha, | |
48 const float *A, const int lda, const float *B, const int ldb, const float beta, float *C, const int ldc); | |
49 | |
50 void wrapper_cblas_dgemm(const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_TRANSPOSE TransB, | |
51 const int M, const int N, const int K, const double alpha, | |
52 const double *A, const int lda, const double *B, const int ldb, const double beta, double *C, const int ldc); | |
53 | |
54 void wrapper_cblas_cgemm(const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_TRANSPOSE TransB, | |
55 const int M, const int N, const int K, const void *alpha, | |
56 const void *A, const int lda, const void *B, const int ldb, const void *beta, void *C, const int ldc); | |
57 | |
58 void wrapper_cblas_zgemm(const enum CBLAS_ORDER Order, const enum CBLAS_TRANSPOSE TransA, const enum CBLAS_TRANSPOSE TransB, | |
59 const int M, const int N, const int K, const void *alpha, | |
60 const void *A, const int lda, const void *B, const int ldb, const void *beta, void *C, const int ldc); | |
61 | |
62 | |
63 int wrapper_clapack_sgetrf(const enum CBLAS_ORDER Order, const int M, const int N, float *A, const int lda, int *ipiv); | |
64 int wrapper_clapack_dgetrf(const enum CBLAS_ORDER Order, const int M, const int N, double *A, const int lda, int *ipiv); | |
65 int wrapper_clapack_cgetrf(const enum CBLAS_ORDER Order, const int M, const int N, void *A, const int lda, int *ipiv); | |
66 int wrapper_clapack_zgetrf(const enum CBLAS_ORDER Order, const int M, const int N, void *A, const int lda, int *ipiv); | |
67 | |
68 int wrapper_clapack_sgetri(const enum CBLAS_ORDER Order, const int N, float *A, const int lda, const int *ipiv); | |
69 int wrapper_clapack_dgetri(const enum CBLAS_ORDER Order, const int N, double *A, const int lda, const int *ipiv); | |
70 int wrapper_clapack_cgetri(const enum CBLAS_ORDER Order, const int N, void *A, const int lda, const int *ipiv); | |
71 int wrapper_clapack_zgetri(const enum CBLAS_ORDER Order, const int N, void *A, const int lda, const int *ipiv); | |
72 | |
73 int wrapper_clapack_sgesv(const enum CBLAS_ORDER Order, const int N, const int NRHS, float *A, const int lda, int *ipiv, float *B, const int ldb); | |
74 int wrapper_clapack_dgesv(const enum CBLAS_ORDER Order, const int N, const int NRHS, double *A, const int lda, int *ipiv, double *B, const int ldb); | |
75 int wrapper_clapack_cgesv(const enum CBLAS_ORDER Order, const int N, const int NRHS, void *A, const int lda, int *ipiv, void *B, const int ldb); | |
76 int wrapper_clapack_zgesv(const enum CBLAS_ORDER Order, const int N, const int NRHS, void *A, const int lda, int *ipiv, void *B, const int ldb); | |
77 | |
78 } | |
79 #endif | |
80 | |
81 } | |
82 | |
83 | |
84 #endif |