alsalam alikum everyone,
i have this extra credit assignment On Fortran and i a not good at Fortran at all so can anybody please write a simple program in fortran to run the subroutine that i have below , as soon as u can guys i am in hurry:
// i Need a main program calling this subroutine
c A * B = C
> c matrix A and B must be of same length
> c element in matrix C = (element in row of A * element in
> column of B)+ sum
>
> c NColInBnC = # of columns in matrix B and C
> c NRowsInAnC = # of rows in A and C
> c NColInAnNRowsInB = # of columns in A and rows in B
>
> subroutine MultiMatAB (A,B,NColInBnC,NRowsInAnC,
> NColInAnNRowsInB)
> integer x,y,z,NColInBnC, NColInAnNRowsInB,
> NColInAnNRowsInB real*8 A(*,*),B(*,*),C(*,*)
>
> c The routine itself
> do z=1, NColInBnC
> do x=1, NRowsInAnC
> C(x,z) = 0.0
> do y=1, NColInAnNRowsInB
> C(x,z) = C(x,z) + A(x,y)*B(y,z)
> end do
> end do
> end do
> return
> end