[sympy] is diag() right?

2012-10-01 Thread smichr
In the diag docstring is this example: >>> diag(a, 7, b, c) [x, 0, 0, 0, 0, 0] [y, 0, 0, 0, 0, 0] [z, 0, 0, 0, 0, 0] [0, 7, 0, 0, 0, 0] [0, 0, 1, 2, 0, 0] [0, 0, 3, 4, 0, 0] [0, 0, 0, 0, 5, 6] Should the 7 be on the diagonal or is this "feature" (where it appears

Re: [sympy] is diag() right?

2012-10-01 Thread Aaron Meurer
This is correct. The different blocks are placed diagonal of one another. They will be on the diagonal of the resulting matrix if the blocks are all square. Aaron Meurer On Monday, October 1, 2012, smichr wrote: > In the diag docstring is this example: > > >>> diag(a, 7, b, c) > [x, 0,