cmatrix.Matrix.write_in_file

Matrix.write_in_file()

Write the current object to file (re-openable in any other Matrix object instance)

Parameters

Type

Description

pathname

String

The name of the saved file

Returns
bint
  • True => file saved

  • False => error occured

Examples

>>> m=rand(4)
>>> print(m)
| +16.000 | +10.000 | +6.000 | +2.000 |
| +9.000 | +10.000 | +3.000 | +2.000 |
| +1.000 | +1.000 | +5.000 | +16.000 |
| +11.000 | +15.000 | +13.000 | +6.000 |
printed
>>> m.write_in_file("test")
True