From f6ff1c64d93ac2ec665cb11121d89d35f24dc60a Mon Sep 17 00:00:00 2001 From: Yuto Horikawa Date: Thu, 21 Sep 2023 17:21:45 +0900 Subject: [PATCH] fix the argument type of `perpendicular_vector` (#268) --- src/util.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util.jl b/src/util.jl index 25da5cdb..b260372c 100644 --- a/src/util.jl +++ b/src/util.jl @@ -5,7 +5,7 @@ Compute a vector perpendicular to `vec` by switching the two elements with largest absolute value, flipping the sign of the second largest, and setting the remaining element to zero. """ -function perpendicular_vector(vec::SVector{3}) +function perpendicular_vector(vec::StaticVector{3}) T = eltype(vec) # find indices of the two elements of vec with the largest absolute values: