On Mar 15, 3:39 am, Alec Mihailovs <alec.mihail...@gmail.com> wrote:
> The second problem is that something strange happens for 1x1 matrices,
> with any dtype,
>
> matrix(fromfunction(lambda i,j:i-j,(1,1),dtype=int))
>
> []
>
> matrix(fromfunction(lambda i,j:i-j+3,(1,1),dtype=int))
>
> [0 0 0]
> [0 0 0]
> [0 0 0]

That seems to be a bug introduced in Sage, not in numpy,

sage: fromfunction(lambda i,j:i-j+3,(1,1),dtype=int)

array([[3]])

sage: matrix(_)

[0 0 0]
[0 0 0]
[0 0 0]

Alec Mihailovs

-- 
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to