SciPy 0.6.0 API Documentation Generated by Endo, 2007-10-17
Classes for read / write of matlab (TM) 5 files
codecs_template = { Name('miUTF8') : Dict([(Const('codec'), Const('utf_8')), (Const('width'), Const(1))]), Name('miUTF16') : Dict([(Const('codec'), Const('utf_16')), (Const('width'), Const(2))]), Name('miUTF32') : Dict([(Const('codec'), Const('utf_32')), (Const('width'), Const(4))]) }
mclass_dtypes_template = { Name('mxINT8_CLASS') : Const('i1'), Name('mxUINT8_CLASS') : Const('u1'), Name('mxINT16_CLASS') : Const('i2'), Name('mxUINT16_CLASS') : Const('u2'), Name('mxINT32_CLASS') : Const('i4'), Name('mxUINT32_CLASS') : Const('u4'), Name('mxSINGLE_CLASS') : Const('f4'), Name('mxDOUBLE_CLASS') : Const('f8') }
mdtypes_template = { Name('miINT8') : Const('i1'), Name('miUINT8') : Const('u1'), Name('miINT16') : Const('i2'), Name('miUINT16') : Const('u2'), Name('miINT32') : Const('i4'), Name('miUINT32') : Const('u4'), Name('miSINGLE') : Const('f4'), Name('miDOUBLE') : Const('f8'), Name('miINT64') : Const('i8'), Name('miUINT64') : Const('u8'), Name('miUTF8') : Const('u1'), Name('miUTF16') : Const('u2'), Name('miUTF32') : Const('u4'), Const('file_header') : List([Tuple([Const('description'), Const('S116')]), Tuple([Const('subsystem_offset'), Const('i8')]), Tuple([Const('version'), Const('u2')]), Tuple([Const('endian_test'), Const('S2')])]), Const('tag_full') : List([Tuple([Const('mdtype'), Const('u4')]), Tuple([Const('byte_count'), Const('u4')])]), Const('array_flags') : List([Tuple([Const('data_type'), Const('u4')]), Tuple([Const('byte_count'), Const('u4')]), Tuple([Const('flags_class'), Const('u4')]), Tuple([Const('nzmax'), Const('u4')])]), Const('U1') : Const('U1') }
miCOMPRESSED = 15
miDOUBLE = 9
miINT16 = 3
miINT32 = 5
miINT64 = 12
miINT8 = 1
miMATRIX = 14
miSINGLE = 7
miUINT16 = 4
miUINT16_codec = sys.getdefaultencoding()
miUINT32 = 6
miUINT64 = 13
miUINT8 = 2
miUTF16 = 17
miUTF32 = 18
miUTF8 = 16
mxCELL_CLASS = 1
mxCHAR_CLASS = 4
mxDOUBLE_CLASS = 6
mxINT16_CLASS = 10
mxINT32_CLASS = 12
mxINT8_CLASS = 8
mxOBJECT_CLASS = 3
mxSINGLE_CLASS = 7
mxSPARSE_CLASS = 5
mxSTRUCT_CLASS = 2
mxUINT16_CLASS = 11
mxUINT32_CLASS = 13
mxUINT8_CLASS = 9
mx_numbers = (mxDOUBLE_CLASS, mxSINGLE_CLASS, mxINT8_CLASS, mxUINT8_CLASS, mxINT16_CLASS, mxUINT16_CLASS, mxINT32_CLASS, mxUINT32_CLASS)
Provides element reader functions, header reader, matrix reader factory function
Gets current read information from passed array_reader
Reads and uncompresses gzipped stream on init, providing wrapper for this new sub-stream.
Adds the following attribute to base class
| Local name | Refers to |
|---|---|
| N | numpy |
| pycopy | copy.copy |
| StringIO | cStringIO.StringIO |
| zlib | zlib |