From 69c126570e0bd531351567343a00b95b1166deb8 Mon Sep 17 00:00:00 2001 From: Alex Jones Date: Tue, 1 Aug 2023 19:28:08 +0100 Subject: [PATCH] a fix --- src/diff.jl | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/diff.jl b/src/diff.jl index 3996de897..b03ac0b12 100644 --- a/src/diff.jl +++ b/src/diff.jl @@ -822,14 +822,13 @@ end function LinearAlgebra.dot(D::ArrayDifferentialOperator, x::SymVec) @assert length(D.vars) == length(x) "Vector must be same length as vars in Operator $(D.name)." - _call(d, x) = d(x) sum(_call, zip(D.differentials, x)) end LinearAlgebra.dot(D::ArrayDifferentialOperator, x::Arr) = Arr(D ⋅ value(x)) function LinearAlgebra.dot(x::SymVec, D::ArrayDifferentialOperator) @assert length(D.vars) == length(x) "Vector must be same length as vars in Operator $(D.name)." - (x) -> sum(D -> D(x), D.differentials) + (x) -> sum((X, D) -> X*D(x), zip(x, D.differentials)) end LinearAlgebra.dot(x::Arr, D::ArrayDifferentialOperator) = value(x) ⋅ D