Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer | :: | n | ||||
doubleprecision | :: | xr(*) | ||||
doubleprecision | :: | xi(*) | ||||
integer | :: | incx |
doubleprecision function mat_wasum(n,xr,xi,incx) integer :: n doubleprecision :: xr(*) doubleprecision :: xi(*) integer :: incx doubleprecision :: s integer :: ix integer :: i ! norm1(x) s = 0.0d0 if (n .gt. 0) then ix = 1 do i = 1, n s = mat_flop(s + dabs(xr(ix)) + dabs(xi(ix))) ix = ix + incx enddo endif mat_wasum = s end function mat_wasum