Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
double precision, | intent(in), | DIMENSION(:) | :: | u |
Row |
|
double precision, | intent(in), | DIMENSION(:) | :: | v |
Column |
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
integer, | public | :: | i | ||||
integer, | public | :: | n |
PURE FUNCTION row_by_column( u, v ) RESULT( res )
IMPLICIT NONE
DOUBLE PRECISION, DIMENSION(:), INTENT(IN):: u
!! Row
DOUBLE PRECISION, DIMENSION(:), INTENT(IN):: v
!! Column
DOUBLE PRECISION:: res
INTEGER:: i, n
n= SIZE(u)
res= 0.D0
DO i= 1, n, 1
res= res + u(i)*v(i)
ENDDO
END FUNCTION row_by_column