File tree Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Expand file tree Collapse file tree 3 files changed +23
-2
lines changed Original file line number Diff line number Diff line change @@ -562,3 +562,10 @@ The following methods implement the pickle protocol:
562
562
563
563
dtype.__reduce__
564
564
dtype.__setstate__
565
+
566
+ Utility method for typing:
567
+
568
+ .. autosummary ::
569
+ :toctree: generated/
570
+
571
+ dtype.__class_getitem__
Original file line number Diff line number Diff line change @@ -621,3 +621,10 @@ String representations:
621
621
622
622
ndarray.__str__
623
623
ndarray.__repr__
624
+
625
+ Utility method for typing:
626
+
627
+ .. autosummary ::
628
+ :toctree: generated/
629
+
630
+ ndarray.__class_getitem__
Original file line number Diff line number Diff line change @@ -196,10 +196,10 @@ Inexact types
196
196
``f16 `` prints as ``0.1 `` because it is as close to that value as possible,
197
197
whereas the other types do not as they have more precision and therefore have
198
198
closer values.
199
-
199
+
200
200
Conversely, floating-point scalars of different precisions which approximate
201
201
the same decimal value may compare unequal despite printing identically:
202
-
202
+
203
203
>>> f16 = np.float16(" 0.1" )
204
204
>>> f32 = np.float32(" 0.1" )
205
205
>>> f64 = np.float64(" 0.1" )
@@ -498,6 +498,13 @@ The exceptions to the above rules are given below:
498
498
generic.__setstate__
499
499
generic.setflags
500
500
501
+ Utility method for typing:
502
+
503
+ .. autosummary ::
504
+ :toctree: generated/
505
+
506
+ number.__class_getitem__
507
+
501
508
502
509
Defining new types
503
510
==================
You can’t perform that action at this time.
0 commit comments