Subroutine to define the norm of the array (here the max norm)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(ndarray), | intent(in) | :: | this | |||
integer, | intent(in), | optional | :: | flags |
function ndarray_norm(this, flags) result (norm)
class(ndarray), intent(in ) :: this
integer, intent(in ), optional :: flags
real(pfdp) :: norm
norm = maxval(abs(this%flatarray))
end function ndarray_norm