/*************************************************************************\ * Copyright (c) 2002 The University of Chicago, as Operator of Argonne * National Laboratory. * Copyright (c) 2002 The Regents of the University of California, as * Operator of Los Alamos National Laboratory. * This file is distributed subject to a Software License Agreement found * in the file LICENSE that is included with this distribution. \*************************************************************************/ /* $Log: m_bench.c,v $ Revision 1.6 2002/08/14 16:45:21 soliday Added Open License Revision 1.5 2000/05/22 15:54:14 soliday Renamed unused main function because of conflicts. Revision 1.4 1999/12/21 17:49:40 soliday Added support for vxWorks Revision 1.3 1999/05/28 14:55:44 soliday Removed compiler warnings under Linux. Revision 1.2 1995/09/05 21:16:07 saunders First test release of the SDDS1.5 package. */ #include "mdb.h" #include "matlib.h" void m_rand(MATRIX *A, double lo, double hi); void matlib_main() { MATRIX *A, *B, *C; MATRIX *At, *Bt; long n, ni, i; double sum; random_1(-1); n = query_long("dimension of arrays", 3L); ni = query_long("number of iterations", 100L); #ifdef VAX_VMS init_stats(); #endif m_alloc(&A, n, n); m_alloc(&At, n, n); m_alloc(&B, n, n); m_alloc(&Bt, n, n); m_alloc(&C, n, n); for (i=sum=0; in; m=A->m; range = hi-lo; for (i=0; ia[i]; for (j=0; j