blas_blasfeo.hpp
1 /*
2  * This file is part of CasADi.
3  *
4  * CasADi -- A symbolic framework for dynamic optimization.
5  * Copyright (C) 2010-2023 Joel Andersson, Joris Gillis, Moritz Diehl,
6  * KU Leuven. All rights reserved.
7  *
8  * CasADi is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 3 of the License, or (at your option) any later version.
12  *
13  * CasADi is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16  * Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with CasADi; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23 
24 
25 #ifndef CASADI_BLAS_BLASFEO_HPP
26 #define CASADI_BLAS_BLASFEO_HPP
27 
28 #include "casadi/core/blas_impl.hpp"
29 #include <casadi/interfaces/blasfeo/casadi_blas_blasfeo_export.h>
30 
31 extern "C" {
34  void blasfeo_blas_dgemm(char* ta, char* tb,
35  int* m, int* n, int* k,
36  double* alpha,
37  double* A, int* lda,
38  double* B, int* ldb,
39  double* beta,
40  double* C, int* ldc);
41  void blasfeo_blas_daxpy(int* n, double* alpha,
42  double* x, int* incx,
43  double* y, int* incy);
44  double blasfeo_blas_ddot(int* n,
45  double* x, int* incx,
46  double* y, int* incy);
47 }
48 
57 
58 namespace casadi {
59 
71  class BlasBlasfeo : public Blas {
72  public:
74  static const std::string meta_doc;
75  };
76 
77 } // namespace casadi
78 
80 #endif // CASADI_BLAS_BLASFEO_HPP
The casadi namespace.
Definition: archiver.hpp:32