Skip to content

Commit

Permalink
Merge pull request numpy#18846 from amrit110/clarify_default_int_type
Browse files Browse the repository at this point in the history
  • Loading branch information
melissawm authored Dec 8, 2021
2 parents 9a19457 + d06fe8c commit 6ae1a58
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions doc/source/user/basics.creation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,11 @@ assign a new type that satisfies all of the array elements involved in
the computation, here ``uint32`` and ``int32`` can both be represented in
as ``int64``.

The default NumPy behavior is to create arrays in either 64-bit signed
integers or double precision floating point numbers, ``int64`` and
``float``, respectively. If you expect your arrays to be a certain type,
then you need to specify the ``dtype`` while you create the array.
The default NumPy behavior is to create arrays in either 32 or 64-bit signed
integers (platform dependent and matches C int size) or double precision
floating point numbers, int32/int64 and float, respectively. If you expect your
integer arrays to be a specific type, then you need to specify the dtype while
you create the array.

2) Intrinsic NumPy array creation functions
===========================================
Expand Down

0 comments on commit 6ae1a58

Please sign in to comment.