-
Notifications
You must be signed in to change notification settings - Fork 22
Expand file tree
/
Copy pathnumpy.py
More file actions
22 lines (20 loc) · 746 Bytes
/
numpy.py
File metadata and controls
22 lines (20 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import numpy as np
import numpy.typing as npt
NDArray = npt.NDArray
StringArray = StrArray = npt.NDArray[np.str_]
BytesArray = npt.NDArray[np.bytes_]
Float16Array = HalfArray = npt.NDArray[np.float16]
Float32Array = FloatArray = npt.NDArray[np.float32]
Float64Array = DoubleArray = npt.NDArray[np.float64]
BoolArray = npt.NDArray[np.bool_]
IntArray = npt.NDArray[np.int_]
Int8Array = npt.NDArray[np.int8]
Int16Array = npt.NDArray[np.int16]
Int32Array = npt.NDArray[np.int32]
Int64Array = npt.NDArray[np.int64]
UInt8Array = npt.NDArray[np.uint8]
UInt16Array = npt.NDArray[np.uint16]
UInt32Array = npt.NDArray[np.uint32]
UInt64Array = npt.NDArray[np.uint64]
DateTimeArray = npt.NDArray[np.datetime64]
TimeDeltaArray = npt.NDArray[np.timedelta64]