From 02b462215e51af72aad029fa6368b6a2aca87cf2 Mon Sep 17 00:00:00 2001 From: Michael Ingold Date: Sun, 22 Sep 2024 19:04:39 -0400 Subject: [PATCH] Make differential arg ts generic --- src/utils.jl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils.jl b/src/utils.jl index 98d7e75d..2b4dc16f 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -67,7 +67,10 @@ end Calculate the differential element (length, area, volume, etc) of the parametric function for `geometry` at arguments `ts`. """ -function differential(geometry, ts::AbstractVector) +function differential( + geometry, + ts +) J = jacobian(geometry, ts) # TODO generalize this with geometric algebra, e.g.: norm(foldl(∧, J))