diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-06-11 00:41:32 +0200 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2011-06-11 03:47:30 +0200 |
commit | 419ef7be6083100669900028bdc7ab926a5673a4 (patch) | |
tree | 6e2071378ad07f7bba4a9e697f83159876539ec6 /Tools/CodeGen | |
parent | 0b9e1442c55b27f811aafe1a4226d56a11a3134e (diff) |
TensorTools.m: No longer include l<n> and u<n> as possible indices, where <n> is a numeric digit
This was causing display issues with expansions of tensors called l and u into components. It is very unlikely anyone was using these indices anyway.
Diffstat (limited to 'Tools/CodeGen')
-rw-r--r-- | Tools/CodeGen/TensorTools.m | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Tools/CodeGen/TensorTools.m b/Tools/CodeGen/TensorTools.m index ef2a5fe..14903c1 100644 --- a/Tools/CodeGen/TensorTools.m +++ b/Tools/CodeGen/TensorTools.m @@ -186,9 +186,6 @@ separateWithString[l_List, s_] := (* List all the letters we can use as index labels *) listLetters[] = Map[ToString, CharacterRange["a", "z"]]; -(* List all the numbers we can use as index labels *) -listNumbers[] = Table[ToString[i], {i,0,9}]; - (* Create and return a symbol using the strings 'prefix' and 'suffix' to be used as in index. Ensure that this symbol is created in the TensorTools context. *) @@ -197,7 +194,7 @@ indexSymbol[(prefix_ ? StringQ) /; (StringLength[prefix] == 1), Symbol["TensorTools`" <> prefix <> suffix]; listIndexLabels[] = - Join[listLetters[],listNumbers[]]; + Join[listLetters[]]; listUpperIndices[] = Map[indexSymbol[upper, #] &, listIndexLabels[]]; |