Utilities¶
Data Type Management¶
|
Promotes args to a common inexact type. |
|
Raise an error if the shapes of the two arrays do not match. |
|
Wrapper function on dtypes.canonicalize_dtype with None handling |
|
Promotes an argument to complex type |
|
Promotes an argument to real type |
System Information¶
str(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str |
|
|
Returns True if the code is running on a CPU platform |
|
Returns True if the code is running on a GPU platform |
|
Returns True if the code is running on a TPU platform |
Returns the number of bytes consumed by the live buffers |
2D Geometry¶
Points and Vectors
|
A point in 2D vector space |
|
A vector in 2D vector space |
Transformations
|
Construct an operator that rotates a 2D vector by angle :math:` heta` clock-wise |
|
Construct an operator that rotates a 2D vector by angle :math:` heta` counter-clock-wise |
|
Construct an operator that reflects a 2D vector across a line defined at angle :math:` heta/2` |