cross Subroutine

public subroutine cross(a, b, c)

Calculates the cross product between two 3-element vectors

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in), dimension(3) :: a
real(kind=rp), intent(in), dimension(3) :: b
real(kind=rp), intent(out), dimension(3) :: c

Cross product of a and b; c = a x b