sum Interface

public interface sum

sum

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

Description

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

Examples

y = sum(x)

Calls

interface~~sum~~CallsGraph interface~sum sum proc~sumhyperdual SumHyperDual interface~sum->proc~sumhyperdual proc~sumhyperdual2 SumHyperDual2 interface~sum->proc~sumhyperdual2

Module Procedures

public pure function SumHyperDual(v1, mask)

Sum hyperdual array elements.

Read more…

Arguments

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

First input operand.

logical, intent(in), optional :: mask(:)

Optional logical mask for the reduction.

Return Value type(hyperdual)

public pure function SumHyperDual2(v1, dim)

Sum hyperdual array elements.

Read more…

Arguments

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

First input operand.

integer, intent(in) :: dim

Array dimension along which to reduce.

Return Value type(hyperdual), allocatable, (:)