<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html><body><div id="mbx-wrapper">
<div id="mbx-content" class="content" onfocus="didBecomeFirstResponder()" contenteditable="true" onblur="didBlur()">With regards to np.where -- shouldn't where be a ufunc, so subclasses or other array-likes can be control its behavior with __numpy_ufunc__?<div><br></div>
<div>As for the other indexing functions, I don't have a strong opinion about how they should handle subclasses. But it is certainly tricky to attempt to handle handle arbitrary subclasses. I would agree that the least error prone thing to do is usually to return base ndarrays. Better to force subclasses to override methods explicitly.</div>
</div>
<div id="mbx-old-email" contenteditable="true"></div>
</div></body></html>