5.3.1. backend.delete¶
- eminus.backend.delete(arr, obj, axis=None)[source]¶
Return a new array with sub-arrays along an axis deleted.
Ref: https://gist.github.com/velikodniy/6efef837e67aee2e7152eb5900eb0258
- Parameters:
arr – Input array.
obj – Indicate indices of sub-arrays to remove along the specified axis.
- Keyword Arguments:
axis – The axis along which to delete the subarray defined by obj. If axis is None, obj
array. (is applied to the flattened)
- Returns:
A copy of arr with the elements specified by obj removed. If axis is None, out is a flattened array.