vec_mult_exp_scal_int Function

private pure elemental function vec_mult_exp_scal_int(a, b)

vec3**scalar for integer scalar

Type Bound

vector

Arguments

Type IntentOptional Attributes Name
class(vector), intent(in) :: a

Input Vector

integer, intent(in) :: b

Input scalar

Return Value type(vector)


Source Code

        type(vector) pure elemental function vec_mult_exp_scal_int(a, b)
            !! vec3**scalar for integer scalar
            !> Input Vector
            class(vector), intent(in) :: a
            !> Input scalar
            integer,       intent(in) :: b

            vec_mult_exp_scal_int = vector(a%x**b, a%y**b, a%z**b)

        end function vec_mult_exp_scal_int