diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-11-14 15:33:08 +0100 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2012-11-14 15:33:08 +0100 |
commit | 4ac728ac483c7b1a488474f87ff097905466d7eb (patch) | |
tree | e3fdf76bbc8e2a361e4f3cdf66e1f843461b2965 /Tools/CodeGen | |
parent | 60ac923f8dc0e00c732de246f12f5a95c4f46511 (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.m | 3 |
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}]]; |