sign Interface

public interface sign

sign

Overloads the Fortran sign intrinsic for hyperdual arguments, propagating supported derivative coefficients.

Description

The generic interface selects a type-specific implementation based on the argument types.

Examples

y = sign(x, s)

Calls

interface~~sign~~CallsGraph interface~sign sign proc~sign_dd sign_dd interface~sign->proc~sign_dd proc~sign_dr sign_dr interface~sign->proc~sign_dr proc~sign_rd sign_rd interface~sign->proc~sign_rd

Module Procedures

public elemental function sign_dd(v1, v2) result(v3)

Apply the Fortran SIGN intrinsic to hyperdual operands.

Read more…

Arguments

Type IntentOptional Attributes Name
type(hyperdual), intent(in) :: v1

First input operand.

type(hyperdual), intent(in) :: v2

Second input operand.

Return Value type(hyperdual)

public elemental function sign_dr(v1, v2) result(v3)

Apply the Fortran SIGN intrinsic to hyperdual operands.

Read more…

Arguments

Type IntentOptional Attributes Name
type(hyperdual), intent(in) :: v1

First input operand.

real(kind=pr), intent(in) :: v2

Second input operand.

Return Value type(hyperdual)

public elemental function sign_rd(v1, v2) result(v3)

Apply the Fortran SIGN intrinsic to hyperdual operands.

Read more…

Arguments

Type IntentOptional Attributes Name
real(kind=pr), intent(in) :: v1

First input operand.

type(hyperdual), intent(in) :: v2

Second input operand.

Return Value type(hyperdual)