{ } Raw JSON

bundles / scipy 1.17.1 / scipy / io / matlab / _mio4 / VarReader4 / read_sub_array

function

scipy.io.matlab._mio4:VarReader4.read_sub_array

source: /scipy/io/matlab/_mio4.py :160

Signature

def   read_sub_array ( self hdr copy = True )

Summary

Mat4 read using header hdr dtype and dims

Parameters

hdr : object

object with attributes dtype, dims. dtype is assumed to be the correct endianness

copy : bool, optional

copies array before return if True (default True) (buffer is usually read only)

Returns

arr : ndarray

of dtype given by hdr dtype and shape given by hdr dims

Aliases

  • scipy.io.matlab._mio4.VarReader4.read_sub_array