ad_t Derived Type

type, public :: ad_t


Constructor

public interface ad_t

  • private elemental function newAD_valIdx(value, N, idx) result(self)

    Arguments

    Type IntentOptional AttributesName
    real(kind=wp), intent(in) :: value
    integer, intent(in) :: N
    integer, intent(in), optional :: idx

    Return Value type(ad_t)

  • private pure function newAD_valGrad(value, grad) result(self)

    Arguments

    Type IntentOptional AttributesName
    real(kind=wp), intent(in) :: value
    real(kind=wp), intent(in), dimension(:):: grad

    Return Value type(ad_t)


Type-Bound Procedures

procedure, public :: val

  • private pure function val(self) result(o)

    Arguments

    Type IntentOptional AttributesName
    class(ad_t), intent(in) :: self

    Return Value real(kind=wp)

procedure, public :: der

  • private pure function der(self, idx) result(o)

    Arguments

    Type IntentOptional AttributesName
    class(ad_t), intent(in) :: self
    integer, intent(in) :: idx

    Return Value real(kind=wp)

procedure, public :: grad

  • private pure function grad(self) result(o)

    Arguments

    Type IntentOptional AttributesName
    class(ad_t), intent(in) :: self

    Return Value real(kind=wp), dimension(:), allocatable