1#!/bin/csh 2 3set ofile = ztest.out # output file 4if ( -e $ofile ) then 5 rm -f $ofile 6endif 7echo "Double-precision complex testing output" > $ofile 8 9set MATRICES = (LAPACK cg20.cua) 10set NVAL = (9 19) 11set NRHS = (5) 12set LWORK = (0 10000000) 13 14# 15# Loop through all matrices ... 16# 17foreach m ($MATRICES) 18 19 #-------------------------------------------- 20 # Test matrix types generated in LAPACK-style 21 #-------------------------------------------- 22 if ($m == 'LAPACK') then 23 echo '== LAPACK test matrices' >> $ofile 24 foreach n ($NVAL) 25 foreach s ($NRHS) 26 foreach l ($LWORK) 27 echo '' >> $ofile 28 echo 'n='$n 'nrhs='$s 'lwork='$l >> $ofile 29 ./ztest -t "LA" -l $l -n $n -s $s >> $ofile 30 end 31 end 32 end 33 #-------------------------------------------- 34 # Test a specified sparse matrix 35 #-------------------------------------------- 36 else 37 echo '' >> $ofile 38 echo '== sparse matrix:' $m >> $ofile 39 foreach s ($NRHS) 40 foreach l ($LWORK) 41 echo '' >> $ofile 42 echo 'nrhs='$s 'lwork='$l >> $ofile 43 ./ztest -t "SP" -s $s -l $l < ../EXAMPLE/$m >> $ofile 44 end 45 end 46 endif 47 48end 49 50