compute lq matrices using sage
 sve temp changes
 sve temp changes