{ } Raw JSON

bundles / scipy latest / scipy / io / matlab / _mio4 / arr_to_2d

function

scipy.io.matlab._mio4:arr_to_2d

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

Signature

def   arr_to_2d ( arr oned_as = row )

Summary

Make arr exactly two dimensional

Extended Summary

If arr has more than 2 dimensions, raise a ValueError

Parameters

arr : array
oned_as : {'row', 'column'}, optional

Whether to reshape 1-D vectors as row vectors or column vectors. See documentation for matdims for more detail

Returns

arr2d : array

2-D version of the array

Aliases

  • scipy.io.matlab._mio4.arr_to_2d