add matrix generator for sympy