#!/bin/sh
#
# LAPACK++ 1.0 Linear Algebra Package 1.0
# University of Tennessee, Knoxvilee, TN.
# Oak Ridge National Laboratory, Oak Ridge, TN.
# Authors: J. J. Dongarra, E. Greaser, R. Pozo, D. Walker
# (C) 1992-1994 All Rights Reserved
#
# NOTICE
#
# Permission to use, copy, modify, and distribute this software and
# its documentation for any purpose and without fee is hereby granted
# provided that the above copyright notice appear in all copies and
# that both the copyright notice and this permission notice appear in
# supporting documentation.
#
# Neither the Institutions (University of Tennessee, and Oak Ridge National
# Laboratory) nor the Authors make any representations about the suitability
# of this software for any purpose. This software is provided ``as is''
# without express or implied warranty.
#
# LAPACK++ was funded in part by the U.S. Department of Energy, the
# National Science Foundation and the State of Tennessee.
testsuite=(tgd tgc tld tuld tud tuud tvi ttdd tstd trvd tcvd tsybmd tvd)
N=(10 30 100)
# run local test and check it against supplied results
for t in ${testsuite[@]}; do
for n in ${N[@]}; do
answer="${t}${n}.out"
echo "$t $n $n > $answer"
./$t $n $n >> $answer || exit $?
done
done
syntax highlighted by Code2HTML, v. 0.9.1