1 /************************************************************************************************** 2 * * 3 * This file is part of BLASFEO. * 4 * * 5 * BLASFEO -- BLAS for embedded optimization. * 6 * Copyright (C) 2019 by Gianluca Frison. * 7 * Developed at IMTEK (University of Freiburg) under the supervision of Moritz Diehl. * 8 * All rights reserved. * 9 * * 10 * The 2-Clause BSD License * 11 * * 12 * Redistribution and use in source and binary forms, with or without * 13 * modification, are permitted provided that the following conditions are met: * 14 * * 15 * 1. Redistributions of source code must retain the above copyright notice, this * 16 * list of conditions and the following disclaimer. * 17 * 2. Redistributions in binary form must reproduce the above copyright notice, * 18 * this list of conditions and the following disclaimer in the documentation * 19 * and/or other materials provided with the distribution. * 20 * * 21 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND * 22 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED * 23 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE * 24 * DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR * 25 * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES * 26 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * 27 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND * 28 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT * 29 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * 30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * 31 * * 32 * Author: Gianluca Frison, gianluca.frison (at) imtek.uni-freiburg.de * 33 * * 34 **************************************************************************************************/ 35 36 #include <stdlib.h> 37 #include <stdio.h> 38 39 #include "../include/blasfeo_common.h" 40 #include "../include/blasfeo_s_aux.h" 41 42 43 44 #define REAL float 45 46 #define STRMAT blasfeo_smat_ref 47 #define STRVEC blasfeo_svec_ref 48 49 #define GEMV_N_LIBSTR blasfeo_sgemv_n_ref 50 #define GEMV_NT_LIBSTR blasfeo_sgemv_nt_ref 51 #define GEMV_T_LIBSTR blasfeo_sgemv_t_ref 52 #define SYMV_L_LIBSTR blasfeo_ssymv_l_ref 53 #define TRMV_LNN_LIBSTR blasfeo_strmv_lnn_ref 54 #define TRMV_LTN_LIBSTR blasfeo_strmv_ltn_ref 55 #define TRMV_UNN_LIBSTR blasfeo_strmv_unn_ref 56 #define TRMV_UTN_LIBSTR blasfeo_strmv_utn_ref 57 #define TRSV_LNN_LIBSTR blasfeo_strsv_lnn_ref 58 #define TRSV_LNN_MN_LIBSTR blasfeo_strsv_lnn_mn_ref 59 #define TRSV_LNU_LIBSTR blasfeo_strsv_lnu_ref 60 #define TRSV_LTN_LIBSTR blasfeo_strsv_ltn_ref 61 #define TRSV_LTN_MN_LIBSTR blasfeo_strsv_ltn_mn_ref 62 #define TRSV_LTU_LIBSTR blasfeo_strsv_ltu_ref 63 #define TRSV_UNN_LIBSTR blasfeo_strsv_unn_ref 64 #define TRSV_UTN_LIBSTR blasfeo_strsv_utn_ref 65 66 67 #include "x_blas2_lib.c" 68