Raise autodiff array to scalar power
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(array_type), | intent(in), | target | :: | a | ||
| integer, | intent(in) | :: | scalar |
module function power_int_scalar(a, scalar) result(c) !! Raise autodiff array to scalar power implicit none class(array_type), intent(in), target :: a integer, intent(in) :: scalar type(array_type), pointer :: c c => power_real_scalar(a, real(scalar, real32)) end function power_int_scalar