Always specify dtype when creating new arrays so that large integer values are preserved and not at risk of going through an intermediate float64 conversion.
Types of change
Bug fix.
Checklist
[x] I confirm that I have the right to submit this contribution under the project's MIT license.
[x] I ran the tests, and all new and existing tests passed.
[x] My changes don't require a change to the documentation, or if they do, I've added all required information.
Description
Always specify
dtype
when creating new arrays so that large integer values are preserved and not at risk of going through an intermediatefloat64
conversion.Types of change
Bug fix.
Checklist