ioMatrix (functions)


siconos.kernel.ioMatrix_read(fileName: std::string const &, mode: std::string const &, m: SiconosMatrix) → bool[source]

read( str fileName, str mode, array_like (np.float64, 2D) m) -> bool

Specialization to read a SiconosMatrix.

Parameters:
  • fileName – the name of the file to read
  • mode – the storage type used in the file (either ascii or binary)
  • m – the SiconosMatrix to be filled
Returns:

true if read ok, else false …


siconos.kernel.ioMatrix_write(*args) → bool[source]

write( str fileName, str mode, array_like (np.float64, 2D) m, str outputType=”python”) -> bool

Specialization to write a SiconosMatrix.

Parameters:
  • fileName – the name of the file to write in
  • mode – the storage type used in the file (either ascii or binary)
  • m – the SiconosMatrix to write
  • outputType

    type of output:

    • ”python”(default): row col a00 a01 a02 … a10 …
    • ”noDim”: a00 a01 a02 … a10 … Reading input format is the one corresponding to “python”.
Returns:

true if read ok, else false …