This is a pre-release version (2.0.0.dev0+git20260907.41eeb59).Go to latest (1.18.0)
{ } Raw JSON

bundles / scipy 2.0.0.dev0+git20260907.41eeb59 / scipy / io / matlab / _mio4 / VarReader4 / read_sub_array

function

scipy.io.matlab._mio4:VarReader4.read_sub_array

source: build-install/usr/lib/python3.14/site-packages/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