Ask Your Question

Revision history [back]

You can just use substitution:

sage: M.substitute(a=0)
[1 0]
[0 b]