step_prime Function

public pure function step_prime(x) result(res)

First derivative of the step activation function.

Arguments

Type IntentOptional AttributesName
real(kind=rk), intent(in) :: x(:)

Return Value real(kind=rk) (size(x))


Contents

Source Code


Source Code

  pure function step_prime(x) result(res)
    !! First derivative of the step activation function.
    real(rk), intent(in) :: x(:)
    real(rk) :: res(size(x))
    res = 0
  end function step_prime