sympy/sympy — pull request #1294 by Krastanov (2012-05-13 11:47:26+00:00)
Title: Sympify matrix opt

Add a `iter_to_matrix` option to sympify and use it in all the __mul__ & co. methods of Matrix. The following is now possible:

```
sympify([x,y], iter_to_matrix=True) == Matrix([x,y])
sympify([[x,y],], iter_to_matrix=True) == Matrix([[x,y],])

sympify(Matrix([1,2]), iter_to_matrix=True) == Matrix([1,2])

Matrix([[1,2],[3,4]]) * [1,2]
Matrix([[1,2],[3,4]]) * [[1,2],[3,4]]
[[1,2],] * Matrix([[1,2],[3,4]])
Matrix([1,2]) + [1,2]
```