[SciPy-user] subclassing matrix
oliphant at ee.byu.edu
Sat Apr 9 11:47:07 CDT 2005
BORGULYA Gábor wrote:
>I would like to subclass the matrix class to add a method 'as_html' which
>generates a html table displaying the matrix.
>Could anyone tell me what the problem is with the following code?
>>>>from scipy import *
>Traceback (most recent call last):
> File "<stdin>", line 1, in ?
>TypeError: __init__() takes exactly 3 arguments (4 given)
The delayed import mechanism means that mat is not the same thing as the
Matrix.Matrix class. Try
More information about the SciPy-user