1
subroutine foubare2(ch,a,ia,b,ib,c,mc,nc,d,w)
2
c -----------------------------------------
3
c ----------- EXAMPLE -----------------
4
c inputs: ch, a,b and c; ia,ib and mc,nc
5
c ch=character, a=integer, b=real and c=double
6
c ia,ib and [mc,nc] are the dimensions of a,b and c resp.
8
c if ch='mul' a,b and c = 2 * (a,b and c)
9
c and d of same dimensions as c with
11
c if ch='add' a,b and c = 2 + (a,b and c)
13
c w is a working array of size [mc,nc]
14
c -------------------------------------------
18
double precision c(mc,*),d(mc,*),w(mc,*)
19
if(ch(1:3).eq.'mul') then
35
elseif(ch(1:3).eq.'add') then