module documentation
A place for internal code
Some things are more easily handled Python.
Class | dummy |
Undocumented |
Function | array |
Format the error message for when __array_ufunc__ gives up. |
Function | array |
Format the error message for when __array_ufunc__ gives up. |
Function | npy |
Undocumented |
Constant | IS |
Undocumented |
Variable | format |
Undocumented |
Variable | sep |
Undocumented |
Variable | space |
Undocumented |
Class | _ctypes |
No class docstring; 4/4 properties, 0/4 instance variable, 7/8 methods documented |
Class | _missing |
Undocumented |
Class | _ |
Undocumented |
Function | __dtype |
Undocumented |
Function | _add |
Inject the specified number of padding bytes at the end of a dtype |
Function | _array |
Undocumented |
Function | _commastring |
Undocumented |
Function | _copy |
Return copy of structured array with padding between fields removed. |
Function | _dtype |
Undocumented |
Function | _fix |
Replace names which are None with the next unused f%d name |
Function | _gcd |
Calculate the greatest common divisor of a and b |
Function | _getfield |
Checks safety of getfield for object arrays. |
Function | _getintp |
Undocumented |
Function | _lcm |
Undocumented |
Function | _makenames |
Undocumented |
Function | _newnames |
Given a datatype and an order object, return a new names tuple, with the order indicated |
Function | _prod |
Undocumented |
Function | _promote |
Perform type promotion for two structured dtypes. |
Function | _reconstruct |
Undocumented |
Function | _ufunc |
Builds a signature string which resembles PEP 457 |
Function | _usefields |
Undocumented |
Function | _view |
Checks safety of a view involving object arrays, for example when doing: |
Variable | _convorder |
Undocumented |
Variable | _nbo |
Undocumented |
Variable | _pep3118 |
Undocumented |
Variable | _pep3118 |
Undocumented |
Variable | _pep3118 |
Undocumented |
Variable | _pep3118 |
Undocumented |
Variable | _pep3118 |
Undocumented |
Return copy of structured array with padding between fields removed.
Parameters | |
ary:ndarray | Structured array from which to remove padding bytes |
Returns | |
ndarray | ary_copy - Copy of ary with padding bytes removed |
Checks safety of getfield for object arrays.
As in _view_is_safe, we need to check that memory containing objects is not reinterpreted as a non-object datatype and vice versa.
Parameters | |
oldtype:data-type | Data type of the original ndarray. |
newtype:data-type | Data type of the field being accessed by ndarray.getfield |
offset:int | Offset of the field being accessed by ndarray.getfield |
Raises | |
TypeError | If the field access is invalid |
Perform type promotion for two structured dtypes.
Notes
If one of the inputs is aligned, the result will be. The titles of both descriptors must match (point to the same field).
Parameters | |
dt1:structured dtype | First dtype. |
dt2:structured dtype | Second dtype. |
Returns | |
dtype | out - The promoted dtype |
Builds a signature string which resembles PEP 457
This is used to construct the first line of the docstring
Checks safety of a view involving object arrays, for example when doing:
np.zeros(10, dtype=oldtype).view(newtype)
Parameters | |
oldtype:data-type | Data type of original ndarray |
newtype:data-type | Data type of the view |
Raises | |
TypeError | If the new type is incompatible with the old type. |