sidekit_io
Copyright 2014-2015 Anthony Larcher
sidekit_io provides methods to read and write from and to different
formats.
-
sidekit_io.read_matrix(filename)[source]
Read matrix in ALIZE binary format and return a ndarray
Parameters: | filename – name of the file to read from |
Returns: | a numpy.ndarray object |
-
sidekit_io.read_vect(filename)[source]
Read vector in ALIZE binary format and return an array
Parameters: | filename – name of the file to read from |
Returns: | a numpy.ndarray object |
-
sidekit_io.write_matrix(M, filename)[source]
Write a matrix in ALIZE binary format
Parameters: |
- M – a 2-dimensional ndarray
- filename – name of the file to write in
|
Exception: | TypeError if M is not a 2-dimensional ndarray
|
-
sidekit_io.write_matrix_int(M, filename)[source]
Write matrix of int in ALIZE binary format
Parameters: |
- M – a 2-dimensional ndarray of int
- filename – name of the file to write in
|
-
sidekit_io.write_vect(V, filename)[source]
Write a vector in ALIZE binary format
Parameters: |
- V – a 1-dimensional ndarray
- filename – name of the file to write in
|
Exception: | TypeError if V is not a 1-dimensional ndarray
|