diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2010-11-29 19:26:00 +0100 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2010-11-29 20:20:16 +0100 |
commit | bd0d11df19335ed90dcd4adbc997f8a9aaaff39b (patch) | |
tree | 20571a35ef8011fab21e9a99455df3ae3144036a /Tools/CodeGen/TensorTools.m | |
parent | 45d3cb6300f0e277e14deb1673f58f7621fa0052 (diff) |
TensorTools.m: Remove tensor index formatting in OutputForm
This was useful when TensorTools was used mainly in the notebook interface. Nowadays it is mostly used on the command line, and the formatting of subscripts and superscripts made things very difficult to read.
Diffstat (limited to 'Tools/CodeGen/TensorTools.m')
-rw-r--r-- | Tools/CodeGen/TensorTools.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tools/CodeGen/TensorTools.m b/Tools/CodeGen/TensorTools.m index 4506e6d..badd1d4 100644 --- a/Tools/CodeGen/TensorTools.m +++ b/Tools/CodeGen/TensorTools.m @@ -217,10 +217,10 @@ IndexIsLower[TensorIndex[_, "u"]] := False; -------------------------------------------------------------------------- *) Format[TensorIndex[label_, "u"], OutputForm] := - Superscript[null,label]; + "u"<>ToString[label]; Format[TensorIndex[label_, "l"], OutputForm] := - Subscript[null,label]; + "l"<>ToString[label]; Format[TensorIndex[label_, "u"], StandardForm] := Superscript[null,label]; |