dcm_rotate_vectors Subroutine

public subroutine dcm_rotate_vectors(v, dcm, vrot)

Rotates vectors by a direction cosine matrix.

Arguments

Type IntentOptional Attributes Name
real(kind=rp), intent(in), dimension(:,:) :: v

(3,n). Vectors to rotate.

real(kind=rp), intent(in), dimension(3,3) :: dcm

Direction cosine matrix.

real(kind=rp), intent(out), dimension(:,:) :: vrot

(3,n). Rotated vectors.