@@ -25,161 +25,161 @@ select the precision desired.
25
25
Enumerated Types
26
26
----------------
27
27
28
- .. c :enumerator :: NPY_TYPES
28
+ .. c :enum :: NPY_TYPES
29
29
30
- There is a list of enumerated types defined providing the basic 24
31
- data types plus some useful generic names. Whenever the code requires
32
- a type number, one of these enumerated types is requested. The types
33
- are all called ``NPY_{NAME} ``:
30
+ There is a list of enumerated types defined providing the basic 24
31
+ data types plus some useful generic names. Whenever the code requires
32
+ a type number, one of these enumerated types is requested. The types
33
+ are all called ``NPY_{NAME} ``:
34
34
35
- .. c :enumerator :: NPY_BOOL
35
+ .. c :enumerator :: NPY_BOOL
36
36
37
- The enumeration value for the boolean type, stored as one byte.
38
- It may only be set to the values 0 and 1.
37
+ The enumeration value for the boolean type, stored as one byte.
38
+ It may only be set to the values 0 and 1.
39
39
40
- .. c :enumerator :: NPY_BYTE
41
- .. c :enumerator :: NPY_INT8
40
+ .. c :enumerator :: NPY_BYTE
41
+ .. c :enumerator :: NPY_INT8
42
42
43
- The enumeration value for an 8-bit/1-byte signed integer.
43
+ The enumeration value for an 8-bit/1-byte signed integer.
44
44
45
- .. c :enumerator :: NPY_SHORT
46
- .. c :enumerator :: NPY_INT16
45
+ .. c :enumerator :: NPY_SHORT
46
+ .. c :enumerator :: NPY_INT16
47
47
48
- The enumeration value for a 16-bit/2-byte signed integer.
48
+ The enumeration value for a 16-bit/2-byte signed integer.
49
49
50
- .. c :enumerator :: NPY_INT
51
- .. c :enumerator :: NPY_INT32
50
+ .. c :enumerator :: NPY_INT
51
+ .. c :enumerator :: NPY_INT32
52
52
53
- The enumeration value for a 32-bit/4-byte signed integer.
53
+ The enumeration value for a 32-bit/4-byte signed integer.
54
54
55
- .. c :enumerator :: NPY_LONG
55
+ .. c :enumerator :: NPY_LONG
56
56
57
- Equivalent to either NPY_INT or NPY_LONGLONG, depending on the
58
- platform.
57
+ Equivalent to either NPY_INT or NPY_LONGLONG, depending on the
58
+ platform.
59
59
60
- .. c :enumerator :: NPY_LONGLONG
61
- .. c :enumerator :: NPY_INT64
60
+ .. c :enumerator :: NPY_LONGLONG
61
+ .. c :enumerator :: NPY_INT64
62
62
63
- The enumeration value for a 64-bit/8-byte signed integer.
63
+ The enumeration value for a 64-bit/8-byte signed integer.
64
64
65
- .. c :enumerator :: NPY_UBYTE
66
- .. c :enumerator :: NPY_UINT8
65
+ .. c :enumerator :: NPY_UBYTE
66
+ .. c :enumerator :: NPY_UINT8
67
67
68
- The enumeration value for an 8-bit/1-byte unsigned integer.
68
+ The enumeration value for an 8-bit/1-byte unsigned integer.
69
69
70
- .. c :enumerator :: NPY_USHORT
71
- .. c :enumerator :: NPY_UINT16
70
+ .. c :enumerator :: NPY_USHORT
71
+ .. c :enumerator :: NPY_UINT16
72
72
73
- The enumeration value for a 16-bit/2-byte unsigned integer.
73
+ The enumeration value for a 16-bit/2-byte unsigned integer.
74
74
75
- .. c :enumerator :: NPY_UINT
76
- .. c :enumerator :: NPY_UINT32
75
+ .. c :enumerator :: NPY_UINT
76
+ .. c :enumerator :: NPY_UINT32
77
77
78
- The enumeration value for a 32-bit/4-byte unsigned integer.
78
+ The enumeration value for a 32-bit/4-byte unsigned integer.
79
79
80
- .. c :enumerator :: NPY_ULONG
80
+ .. c :enumerator :: NPY_ULONG
81
81
82
- Equivalent to either NPY_UINT or NPY_ULONGLONG, depending on the
83
- platform.
82
+ Equivalent to either NPY_UINT or NPY_ULONGLONG, depending on the
83
+ platform.
84
84
85
- .. c :enumerator :: NPY_ULONGLONG
86
- .. c :enumerator :: NPY_UINT64
85
+ .. c :enumerator :: NPY_ULONGLONG
86
+ .. c :enumerator :: NPY_UINT64
87
87
88
- The enumeration value for a 64-bit/8-byte unsigned integer.
88
+ The enumeration value for a 64-bit/8-byte unsigned integer.
89
89
90
- .. c :enumerator :: NPY_HALF
91
- .. c :enumerator :: NPY_FLOAT16
90
+ .. c :enumerator :: NPY_HALF
91
+ .. c :enumerator :: NPY_FLOAT16
92
92
93
- The enumeration value for a 16-bit/2-byte IEEE 754-2008 compatible floating
94
- point type.
93
+ The enumeration value for a 16-bit/2-byte IEEE 754-2008 compatible floating
94
+ point type.
95
95
96
- .. c :enumerator :: NPY_FLOAT
97
- .. c :enumerator :: NPY_FLOAT32
96
+ .. c :enumerator :: NPY_FLOAT
97
+ .. c :enumerator :: NPY_FLOAT32
98
98
99
- The enumeration value for a 32-bit/4-byte IEEE 754 compatible floating
100
- point type.
99
+ The enumeration value for a 32-bit/4-byte IEEE 754 compatible floating
100
+ point type.
101
101
102
- .. c :enumerator :: NPY_DOUBLE
103
- .. c :enumerator :: NPY_FLOAT64
102
+ .. c :enumerator :: NPY_DOUBLE
103
+ .. c :enumerator :: NPY_FLOAT64
104
104
105
- The enumeration value for a 64-bit/8-byte IEEE 754 compatible floating
106
- point type.
105
+ The enumeration value for a 64-bit/8-byte IEEE 754 compatible floating
106
+ point type.
107
107
108
- .. c :enumerator :: NPY_LONGDOUBLE
108
+ .. c :enumerator :: NPY_LONGDOUBLE
109
109
110
- The enumeration value for a platform-specific floating point type which is
111
- at least as large as NPY_DOUBLE, but larger on many platforms.
110
+ The enumeration value for a platform-specific floating point type which is
111
+ at least as large as NPY_DOUBLE, but larger on many platforms.
112
112
113
- .. c :enumerator :: NPY_CFLOAT
114
- .. c :enumerator :: NPY_COMPLEX64
113
+ .. c :enumerator :: NPY_CFLOAT
114
+ .. c :enumerator :: NPY_COMPLEX64
115
115
116
- The enumeration value for a 64-bit/8-byte complex type made up of
117
- two NPY_FLOAT values.
116
+ The enumeration value for a 64-bit/8-byte complex type made up of
117
+ two NPY_FLOAT values.
118
118
119
- .. c :enumerator :: NPY_CDOUBLE
120
- .. c :enumerator :: NPY_COMPLEX128
119
+ .. c :enumerator :: NPY_CDOUBLE
120
+ .. c :enumerator :: NPY_COMPLEX128
121
121
122
- The enumeration value for a 128-bit/16-byte complex type made up of
123
- two NPY_DOUBLE values.
122
+ The enumeration value for a 128-bit/16-byte complex type made up of
123
+ two NPY_DOUBLE values.
124
124
125
- .. c :enumerator :: NPY_CLONGDOUBLE
125
+ .. c :enumerator :: NPY_CLONGDOUBLE
126
126
127
- The enumeration value for a platform-specific complex floating point
128
- type which is made up of two NPY_LONGDOUBLE values.
127
+ The enumeration value for a platform-specific complex floating point
128
+ type which is made up of two NPY_LONGDOUBLE values.
129
129
130
- .. c :enumerator :: NPY_DATETIME
130
+ .. c :enumerator :: NPY_DATETIME
131
131
132
- The enumeration value for a data type which holds dates or datetimes with
133
- a precision based on selectable date or time units.
132
+ The enumeration value for a data type which holds dates or datetimes with
133
+ a precision based on selectable date or time units.
134
134
135
- .. c :enumerator :: NPY_TIMEDELTA
135
+ .. c :enumerator :: NPY_TIMEDELTA
136
136
137
- The enumeration value for a data type which holds lengths of times in
138
- integers of selectable date or time units.
137
+ The enumeration value for a data type which holds lengths of times in
138
+ integers of selectable date or time units.
139
139
140
- .. c :enumerator :: NPY_STRING
140
+ .. c :enumerator :: NPY_STRING
141
141
142
- The enumeration value for ASCII strings of a selectable size. The
143
- strings have a fixed maximum size within a given array.
142
+ The enumeration value for ASCII strings of a selectable size. The
143
+ strings have a fixed maximum size within a given array.
144
144
145
- .. c :enumerator :: NPY_UNICODE
145
+ .. c :enumerator :: NPY_UNICODE
146
146
147
- The enumeration value for UCS4 strings of a selectable size. The
148
- strings have a fixed maximum size within a given array.
147
+ The enumeration value for UCS4 strings of a selectable size. The
148
+ strings have a fixed maximum size within a given array.
149
149
150
- .. c :enumerator :: NPY_OBJECT
150
+ .. c :enumerator :: NPY_OBJECT
151
151
152
- The enumeration value for references to arbitrary Python objects.
152
+ The enumeration value for references to arbitrary Python objects.
153
153
154
- .. c :enumerator :: NPY_VOID
154
+ .. c :enumerator :: NPY_VOID
155
155
156
- Primarily used to hold struct dtypes, but can contain arbitrary
157
- binary data.
156
+ Primarily used to hold struct dtypes, but can contain arbitrary
157
+ binary data.
158
158
159
- Some useful aliases of the above types are
159
+ Some useful aliases of the above types are
160
160
161
- .. c :enumerator :: NPY_INTP
161
+ .. c :enumerator :: NPY_INTP
162
162
163
- The enumeration value for a signed integer type which is the same
164
- size as a (void \* ) pointer. This is the type used by all
165
- arrays of indices.
163
+ The enumeration value for a signed integer type which is the same
164
+ size as a (void \* ) pointer. This is the type used by all
165
+ arrays of indices.
166
166
167
- .. c :enumerator :: NPY_UINTP
167
+ .. c :enumerator :: NPY_UINTP
168
168
169
- The enumeration value for an unsigned integer type which is the
170
- same size as a (void \* ) pointer.
169
+ The enumeration value for an unsigned integer type which is the
170
+ same size as a (void \* ) pointer.
171
171
172
- .. c :enumerator :: NPY_MASK
172
+ .. c :enumerator :: NPY_MASK
173
173
174
- The enumeration value of the type used for masks, such as with
175
- the :c:data: `NPY_ITER_ARRAYMASK ` iterator flag. This is equivalent
176
- to :c:data: `NPY_UINT8 `.
174
+ The enumeration value of the type used for masks, such as with
175
+ the :c:data: `NPY_ITER_ARRAYMASK ` iterator flag. This is equivalent
176
+ to :c:data: `NPY_UINT8 `.
177
177
178
- .. c :enumerator :: NPY_DEFAULT_TYPE
178
+ .. c :enumerator :: NPY_DEFAULT_TYPE
179
179
180
- The default type to use when no dtype is explicitly specified, for
181
- example when calling np.zero(shape). This is equivalent to
182
- :c:data: `NPY_DOUBLE `.
180
+ The default type to use when no dtype is explicitly specified, for
181
+ example when calling np.zero(shape). This is equivalent to
182
+ :c:data: `NPY_DOUBLE `.
183
183
184
184
Other useful related constants are
185
185
0 commit comments