Compute the maximum norm of the first n elements of vector v.
Replacement for the original SLATEC routine.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | v | ||
| integer, | intent(in) | :: | n |
function dhvnrm(v, n) result(m) implicit none real(wp) :: m integer, intent(in) :: n real(wp), dimension(:), intent(in) :: v m = maxval(abs(v(1:n))) end function dhvnrm