SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17
Classes for read / write of matlab (TM) 4 files
mdtypes_template = { Name('miDOUBLE') : Const('f8'), Name('miSINGLE') : Const('f4'), Name('miINT32') : Const('i4'), Name('miINT16') : Const('i2'), Name('miUINT16') : Const('u2'), Name('miUINT8') : Const('u1'), Const('header') : List([Tuple([Const('mopt'), Const('i4')]), Tuple([Const('mrows'), Const('i4')]), Tuple([Const('ncols'), Const('i4')]), Tuple([Const('imagf'), Const('i4')]), Tuple([Const('namlen'), Const('i4')])]), Const('U1') : Const('U1') }
miDOUBLE = 0
miINT16 = 3
miINT32 = 2
miSINGLE = 1
miUINT16 = 4
miUINT8 = 5
mxCHAR_CLASS = 1
matrix classes
mxFULL_CLASS = 0
mxSPARSE_CLASS = 2
np_to_mtypes = { Const('f8') : Name('miDOUBLE'), Const('c32') : Name('miDOUBLE'), Const('c24') : Name('miDOUBLE'), Const('c16') : Name('miDOUBLE'), Const('f4') : Name('miSINGLE'), Const('c8') : Name('miSINGLE'), Const('i4') : Name('miINT32'), Const('i2') : Name('miINT16'), Const('u2') : Name('miUINT16'), Const('u1') : Name('miUINT8'), Const('S1') : Name('miUINT8') }
order_codes = { Const(0) : Const('<'), Const(1) : Const('>'), Const(2) : Const('VAX D-float'), Const(3) : Const('VAX G-float'), Const(4) : Const('Cray') }
Matlab (TM) 4 real sparse arrays are saved in a N+1 by 3 array format, where N is the number of non-zero values
Factory function to return matrix writer given variable to write stream - file or file-like stream to write to arr - array to write name - name in matlab (TM) workspace
| Local name | Refers to |
|---|---|
| N | numpy |