getting the coefficient matrix
Publié : ven. févr. 08, 2019 10:32 am
Hi,
Is there an efficient way of getting the coefficient matrix of a system of linear equations eqns with variable vars?
I want something like:
I know I could just loop through the vars and ask for coefficients but I think this is not very efficient (for instance in maple there is a command called "GenerateMatrix" that does this).
Jose
Is there an efficient way of getting the coefficient matrix of a system of linear equations eqns with variable vars?
I want something like:
Code : Tout sélectionner
get_coeff_matrix(eqns,vars)
Jose