Robert Kern wrote:
> matrix objects are a bit weird. Most operations on them always return
> a 2D matrix, even if the same operation on a regular ndarray would
> return a 1D array.
Whatever happened to the proposals to improve this? I think there were
some good ideas floated.
-Chris
--
Chris
On Sat, Nov 22, 2008 at 13:19, Loïc BERTHE <[EMAIL PROTECTED]> wrote:
> I've encoutered an error during an ipython's session that I fail to
> understand :
>
> In [12]: n = 4
> In [13]: K = mat(diag(arange(2*n)))
> In [14]: print K
> [[0 0 0 0 0 0 0 0]
> [0 1 0 0 0 0 0 0]
> [0 0 2 0 0 0 0 0]
> [
I've encoutered an error during an ipython's session that I fail to understand :
In [12]: n = 4
In [13]: K = mat(diag(arange(2*n)))
In [14]: print K
[[0 0 0 0 0 0 0 0]
[0 1 0 0 0 0 0 0]
[0 0 2 0 0 0 0 0]
[0 0 0 3 0 0 0 0]
[0 0 0 0 4 0 0 0]
[0 0 0 0 0 5 0 0]
[0 0 0 0 0 0 6 0]
[0 0 0 0 0 0 0