Fortran-lang/stdlib
Contributing and specs
Source Files
Modules
Procedures
Abstract Interfaces
Derived Types
gelu_approx
Interface
experimental
10 statements
Source File
stdlib_specialfunctions.fypp
stdlib_specialfunctions
gelu_approx
Contents
Functions
gelu_approx_dp
gelu_approx_sp
public interface gelu_approx
Approximated gaussian error linear unit function
Functions
private elemental module function gelu_approx_dp(x) result(y)
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=dp),
intent(in)
::
x
Return Value
real(kind=dp)
private elemental module function gelu_approx_sp(x) result(y)
(
Specification
)
Arguments
Type
Intent
Optional
Attributes
Name
real(kind=sp),
intent(in)
::
x
Return Value
real(kind=sp)