1x1 matrix -> scalar
Hi everyone, i have a problem with dimensions: I am programing the conjugate gradient algorithm, unfortunatly, when the result is scalar, Sage still handles it a 1x1 matrix, and as a result i cannot use multiplication. How can i fix it, maybe there is a good tutorial or a book for Sage and linear algebra.
Here is my work so far:
https://cloud.sagemath.com/projects/1...
Thank you in advance.