| 1 |
/* |
| 2 |
* *************************************************************************** |
| 3 |
* PUNC = < Portable Understructure for Numerical Computing > |
| 4 |
* Copyright (C) 1994-- Michael Holst |
| 5 |
* |
| 6 |
* This library is free software; you can redistribute it and/or |
| 7 |
* modify it under the terms of the GNU Lesser General Public |
| 8 |
* License as published by the Free Software Foundation; either |
| 9 |
* version 2.1 of the License, or (at your option) any later version. |
| 10 |
* |
| 11 |
* This library is distributed in the hope that it will be useful, |
| 12 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 13 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 14 |
* Lesser General Public License for more details. |
| 15 |
* |
| 16 |
* You should have received a copy of the GNU Lesser General Public |
| 17 |
* License along with this library; if not, write to the Free Software |
| 18 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
| 19 |
* |
| 20 |
* rcsid="$Id: mainc.c,v 1.3 2010/08/12 05:52:45 fetk Exp $" |
| 21 |
* *************************************************************************** |
| 22 |
*/ |
| 23 |
|
| 24 |
/* |
| 25 |
* *************************************************************************** |
| 26 |
* File: main.c |
| 27 |
* |
| 28 |
* Purpose: Driver program for testing the BLAS. |
| 29 |
* |
| 30 |
* Author: Michael Holst |
| 31 |
* *************************************************************************** |
| 32 |
*/ |
| 33 |
|
| 34 |
#include <punc/punc.h> |
| 35 |
|
| 36 |
#define VEMBED(rctag) VPRIVATE const char* rctag; \ |
| 37 |
static void* use_rcsid=(0 ? &use_rcsid : (void*)&rcsid); |
| 38 |
VEMBED(rcsid="$Id: mainc.c,v 1.3 2010/08/12 05:52:45 fetk Exp $") |
| 39 |
|
| 40 |
int main(int argc, char **argv) { |
| 41 |
int n, incx, incy; |
| 42 |
double dx[3], dy[3]; |
| 43 |
n = 3; |
| 44 |
incx = 1; |
| 45 |
incy = 1; |
| 46 |
fprintf(stderr,"mainc: just before call to BLAS::ddot\n"); |
| 47 |
(void)ddot(&n, dx, &incx, dy, &incy); |
| 48 |
fprintf(stderr,"mainc: just after call to BLAS::ddot\n"); |
| 49 |
return 0; |
| 50 |
} |
| 51 |
|