```
>>> # should we have a list of list form for the following (or will that
not be necessary)?
...
>>> zeros(2)
Matrix([
[0, 0],
[0, 0]])
>>> zeros(2,3)
Matrix([
[0, 0, 0],
[0, 0, 0]])
>>> diag(1,2,3)
Matrix([
[1, 0, 0],
[0, 2, 0],
[0, 0, 3]])
>>> ones(2)
Matrix([
[1, 1],
[1, 1]])
>>> ones(2,3)
Matrix([
[1, 1, 1],
[1, 1, 1]])
```


On Fri, Dec 20, 2013 at 9:56 PM, Saurabh Jha <notifications@github.com>wrote:

> In sympy/matrices/densetools.py:
>
> > +    >>> from sympy import ZZ
> > +    >>> a = [
> > +    ... [ZZ(3), ZZ(7), ZZ(4)],
> > +    ... [ZZ(2), ZZ(4), ZZ(5)],
> > +    ... [ZZ(6), ZZ(2), ZZ(3)]]
> > +    >>> b = [
> > +    ... [ZZ(4)],
> > +    ... [ZZ(5)],
> > +    ... [ZZ(6)]]
> > +    >>> augment(a, b, ZZ)
> > +    [[3, 7, 4, 4], [2, 4, 5, 5], [6, 2, 3, 6]]
> > +    """
> > +    return [row + element for row, element in zip(matlist, column)]
> > +
> > +
> > +def identity(shape, K):
>
> Sorry, I didn't got your last comment about diag and zeroes.
>
> ?
> Reply to this email directly or view it on GitHub<https://github.com/sympy/sympy/pull/2248/files#r8516281>
> .
>