[Numpy-discussion] floats for indexing, reshape - too strict ?
ndbecker2 at gmail.com
Thu Jul 2 08:40:13 EDT 2015
josef.pktd at gmail.com wrote:
> On Wed, Jul 1, 2015 at 10:32 AM, Sebastian Berg
> <sebastian at sipsolutions.net> wrote:
>> On Mi, 2015-07-01 at 10:05 -0400, josef.pktd at gmail.com wrote:
>> > About the deprecation warning for using another type than integers, in
>> > ones, reshape, indexing and so on:
>> > Wouldn't it be nicer to accept floats that are equal to an integer?
I'd be concerned that checking each index for exactness would be costly.
I'm also concerned that using floats for an index is frequently a mistake
and that a warning is what I want.
More information about the NumPy-Discussion