Pref::matrixSeparator --
sets the separator of matrix entries
IntroductionPref::matrixSeparator(" ") sets the
separator of matrix entries to be a space.
Call(s)Pref::matrixSeparator( <string>)
Parametersstring |
- | string, that separates matrix entries for printing, or
NIL |
Returnsthe previously defined string
Related
Functions
Details", ". The separator string should
not contain a tabulator, and should be at least one character.Pref::matrixSeparator without arguments
returns the current value. The argument NIL resets the
default value.Pref::matrixSeparator only configures
the ASCII output with PRETTYPRINT set to TRUE. It does not influence the
typesetting output.
Example
1>> A:= array(1..2, 1..2, [[1, 2], [2, 3]])
+- -+
| 1, 2 |
| |
| 2, 3 |
+- -+
>> Pref::matrixSeparator(" "):
A
+- -+
| 1 2 |
| |
| 2 3 |
+- -+