From 419ef7be6083100669900028bdc7ab926a5673a4 Mon Sep 17 00:00:00 2001 From: Ian Hinder Date: Sat, 11 Jun 2011 00:41:32 +0200 Subject: TensorTools.m: No longer include l and u as possible indices, where 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. --- Tools/CodeGen/TensorTools.m | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'Tools') 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[]]; -- cgit v1.2.3