diff options
author | Ian Hinder <ian.hinder@aei.mpg.de> | 2010-12-19 23:51:04 +0100 |
---|---|---|
committer | Ian Hinder <ian.hinder@aei.mpg.de> | 2010-12-19 23:51:25 +0100 |
commit | db797d0f0f6e31f5e40078ec8d1b7c33d59647f5 (patch) | |
tree | 939223886e5cf0a2fa57174fd91f671ebc63c911 /Tools/CodeGen/TensorTools.m | |
parent | 54809420e999ff157a756fa584034aa11a2251bd (diff) |
TensorTools.m: Correct OutputForm of tensors to include brackets and commas
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 350b619..6579c63 100644 --- a/Tools/CodeGen/TensorTools.m +++ b/Tools/CodeGen/TensorTools.m @@ -251,12 +251,12 @@ DefineTensor[T_] := Format[Tensor[T, is:((TensorIndex[_,_] | _Integer) ..) ], StandardForm] := PrecedenceForm[ - SequenceForm[T,is], + SequenceForm[T,"[",Sequence@@Riffle[{is},","],"]"], 10000]; Format[Tensor[T, is:((TensorIndex[_,_] | _Integer) ..) ], OutputForm] := PrecedenceForm[ - SequenceForm[T,is], + SequenceForm[T,"[",Sequence@@Riffle[{is},","],"]"], 10000]; (* Cannot get InputForm to work *) |