Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | in_vec(3) |
function inversion_vec(in_vec) result(out_vec)
integer, intent(in) :: in_vec(3)
integer :: out_vec(3)
out_vec(1:2) = nint(matmul(inv_matrix, real(in_vec(1:2))))
out_vec(3) = in_vec(3)
end function inversion_vec