kwgoodman / la

Meet larry, the labeled numpy array
http://pypi.python.org/pypi/la
Other
44 stars 20 forks source link

BUG larry.cumsum and cumprod give int16 ouput with int16 input #59

Closed kwgoodman closed 12 years ago

kwgoodman commented 12 years ago

When int input is less than system default then output of larry.cumsum() and larry.cumprod() should be system default int.

For example, on my 64 bit system the default numpy int is np.int64. So if I take the cumsum of a np.int32 larry then the output should be a np.int64 larry. The current behavior is to return a np.int32 larry.