#NEWLINE# def hsplit( ary , indices_or_sections ) : #NEWLINE# #INDENT# 'Splits an array into multiple sub arrays horizontally.\n\n    This is equivalent to ``split`` with ``axis=0`` if ``ary`` has one\n    dimension, and otherwise that with ``axis=1``.\n\n    .. seealso:: :func:`cupy.split` for more detail, :func:`numpy.hsplit`\n\n    ' #NEWLINE# if ( ary . ndim == 0 ) : #NEWLINE# #INDENT# raise ValueError ( 'Cannot hsplit a zero-dimensional array' ) #NEWLINE# #UNINDENT# if ( ary . ndim == 1 ) : #NEWLINE# #INDENT# return split ( ary , indices_or_sections , 0 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return split ( ary , indices_or_sections , 1 )