def to_java_ints(m):
global _java<EOL>if _java is None: _init_registration()<EOL>m = np.asarray(m)<EOL>dims = len(m.shape)<EOL>if dims > <NUM_LIT:2>: raise ValueError('<STR_LIT>')<EOL>bindat = serialize_numpy(m, '<STR_LIT:i>')<EOL>return (_java.jvm.nben.util.Numpy.int2FromBytes(bindat) if dims == <NUM_LIT:2><EOL>else _java.jvm.nben.util.Numpy.int1FromBytes(bindat))<EOL>
to_java_ints(m) yields a java array object for the vector or matrix m.