blob: 8a8ee872469bda12c3118aa8b360985443e1eb11 [file] [log] [blame]
Austin Schuh16ce3c72018-01-28 16:17:08 -08001/**************************************************************************************************
2* *
3* This file is part of HPMPC. *
4* *
5* HPMPC -- Library for High-Performance implementation of solvers for MPC. *
6* Copyright (C) 2014-2015 by Technical University of Denmark. All rights reserved. *
7* *
8* HPMPC 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 2.1 of the License, or (at your option) any later version. *
12* *
13* HPMPC 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. *
16* See the GNU 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 HPMPC; if not, write to the Free Software *
20* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA *
21* *
22* Author: Gianluca Frison, giaf (at) dtu.dk *
23* *
24**************************************************************************************************/
25
26void sgemv_n_3l(int m, int n, float *A, int lda , float *x, float *z);
27void sgemm_nn_3l(int m, int n, int k, float *A, int lda , float *B, int ldb, float *C, int ldc);
28void saxpy_3l(int n, float da, float *dx, float *dy);
29void sscal_3l(int n, float da, float *dx);
30
31/* copies a matrix into another matrix */
32void smcopy(int row, int col, float *ptrA, int lda, float *ptrB, int ldb);
33
34/* solution of a system of linear equations */
35void sgesv_3l(int n, int nrhs, float *A, int lda, int *ipiv, float *B, int ldb, int *info);
36
37/* matrix exponential */
38void expm(int row, float *A);