Skip to content

About subclassing np.matrix

Malte edited this page May 19, 2016 · 1 revision

I think I found the reason for the problems we encountered with inheriting from nd.matrix. The reasons are detailed here: http://docs.scipy.org/doc/numpy-1.10.1/user/basics.subclassing.html So in case we do plan to subclass np.matrix / np.ndarray we need to take this into account (maybe we simply shouldn't).

Clone this wiki locally