| Calling Sequence
| PrintMatrix(A,format)
|
| Parameters
| | Name | Type | Description |
|
| A
| a rectangular or square matrix | |
| format
| optional, a formatting string, as in printf | |
|
| Return Type
| NULL |
| Synopsis
| This function pretty-prints a square or rectangular matrix.
It is normally used by the print() command. If called directly, the user
can specify the format to be used. Without a printing format, it will
calculate a reasonable format to fit on the screen width. |
| Examples
| > PrintMatrix( [[1,2], [3,4]] );
1 2
3 4
> PrintMatrix( [[1/7,2/7], [3/7,4/7]], '%13.10f');
0.1428571429 0.2857142857
0.4285714286 0.5714285714
|
| See also
| print, printf (for the codes accepted as format) |