ndarray_norm Function

public function ndarray_norm(this, flags) result(norm)

Subroutine to define the norm of the array (here the max norm)

Arguments

Type IntentOptional AttributesName
class(ndarray), intent(in) :: this
integer, intent(in), optional :: flags

Return Value real(kind=pfdp)


Contents

Source Code


Source Code

  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