[Numpy-discussion] kron with matrices
Sven Schreiber
svetosch at gmx.net
Tue Apr 4 16:03:02 EDT 2006
Hi,
first of all thanks for including kron in numpy, it's very useful.
Now I have just built numpy from svn for the first time in order to spot
matrix-related bugs before a new release as promised. That worked well,
thanks to the great wiki instructions.
The old bugs (in linalg) are gone, but I wonder whether the following
behavior is another one:
>>> import numpy as n
>>> n.kron(n.asmatrix(n.ones((1,2))), n.asmatrix(n.zeros((2,2))))
array([[0, 0, 0, 0],
[0, 0, 0, 0]])
I would prefer if kron returned a matrix at least if both inputs are
matrices, as in the given example.
Thanks,
Sven
More information about the NumPy-Discussion
mailing list