aboutsummaryrefslogtreecommitdiff
path: root/Tools/CodeGen
diff options
context:
space:
mode:
authorIan Hinder <ian.hinder@aei.mpg.de>2012-11-14 15:33:08 +0100
committerIan Hinder <ian.hinder@aei.mpg.de>2012-11-14 15:33:08 +0100
commit4ac728ac483c7b1a488474f87ff097905466d7eb (patch)
treee3fdf76bbc8e2a361e4f3cdf66e1f843461b2965 /Tools/CodeGen
parent60ac923f8dc0e00c732de246f12f5a95c4f46511 (diff)
TensorTools.m: Expand contractions within partial derivatives
Previously, PD[v[ua],la] was not expanded
Diffstat (limited to 'Tools/CodeGen')
-rw-r--r--Tools/CodeGen/TensorTools.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Tools/CodeGen/TensorTools.m b/Tools/CodeGen/TensorTools.m
index 50d108c..5aab9ed 100644
--- a/Tools/CodeGen/TensorTools.m
+++ b/Tools/CodeGen/TensorTools.m
@@ -549,6 +549,9 @@ listComponentsOfDummyIndex[x_, i:(TensorIndex[_,lower])] :=
contractions of tensorial expressions.
*)
+makeSum[x : PD[Tensor[_, __TensorIndex], __TensorIndex]] :=
+ makeSumOverDummies[x];
+
makeSum[f_[x___]] :=
Apply[f, Map[makeSum, {x}]];