You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StyleBox[\"\",\nFontSlant->\"Italic\"]\)is used as a prefix;
34
+
StyleBox[\"\",\nFontSlant->\"Italic\"]\)is used as a prefix.
35
35
\!\(\*
36
-
StyleBox[\"coord\",\nFontSlant->\"Italic\"]\) - a list of coordinates on this space or a string prefix to generate names automatically, if missing \!\(\*
36
+
StyleBox[\"coord\",\nFontSlant->\"Italic\"]\) - a list of coordinates on this space or a string prefix to generate names automatically; if missing,\!\(\*
StyleBox[\"\",\nFontSlant->\"Italic\"]\)is used as a prefix."
39
39
@@ -52,9 +52,11 @@
52
52
53
53
GetArray::usage=
54
54
"GetArray[\!\(\*
55
-
StyleBox[\"expr\",\nFontSlant->\"Italic\"]\)] substitutes arrays into tensor variables and performs contractions and math operations. The optional variables are:
55
+
StyleBox[\"expr\",\nFontSlant->\"Italic\"]\)] substitutes tensor variables with arrays and performs contractions and math operations. The optional variables are:
56
56
\!\(\*
57
-
StyleBox[\"indices\",\nFontSlant->\"Italic\"]\) - a list of indices in which order the tensor should be transposed. If omitted indices are taken to be in standard order, i.e., the one returned by the standard Sort[] function."
57
+
StyleBox[\"indices\",\nFontSlant->\"Italic\"]\) - a list of indices in which order the tensor should be transposed. If omitted \!\(\*
58
+
StyleBox[\"indices\",\nFontSlant->\"Italic\"]\) are taken to be the free indices in \!\(\*
59
+
StyleBox[\"expr\",\nFontSlant->\"Italic\"]\) in standard order, i.e., the one returned by the standard Sort[] function."
58
60
59
61
metric::usage=
60
62
"metric[-\!\(\*
@@ -213,7 +215,8 @@
213
215
SetTensor[head_Symbol[ind__?IndexQ],array_List]:=
214
216
Module[{},
215
217
If[$Verbose,Print["Setting tensor: ",head[ind]," to have the following array: ", array]];
216
-
If[head===basis||head===\[Eth],Print["Cannot modify the built-in tensor: ", head[ind]];Abort[]];
218
+
If[head===basis,Print["Cannot set the built-in tensor: ", head[ind]];Abort[]];
219
+
If[StringStartsQ[SymbolName[head],"\[Eth]"],Print["Cannot set tensor starting with \[Eth]: ", head[ind]];Abort[]];
0 commit comments