First derivative of the Gaussian activation function.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=rk), | intent(in) | :: | x(:) |
pure function gaussian_prime(x) result(res)
!! First derivative of the Gaussian activation function.
real(rk), intent(in) :: x(:)
real(rk) :: res(size(x))
res = -2 * x * gaussian(x)
end function gaussian_prime