Overloads the Fortran sum intrinsic for hyperdual arguments, propagating supported derivative coefficients.
The generic interface selects a type-specific implementation based on the argument types.
y = sum(x)
Sum hyperdual array elements.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(hyperdual), | intent(in) | :: | v1(:) |
First input operand. |
||
| logical, | intent(in), | optional | :: | mask(:) |
Optional logical mask for the reduction. |
Sum hyperdual array elements.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(hyperdual), | intent(in) | :: | v1(:,:) |
First input operand. |
||
| integer, | intent(in) | :: | dim |
Array dimension along which to reduce. |