Hi everyone, i have a problem with dimensions: I am programing conjugate gradient algorithm, unfortunatly, when the result is skalar, sage still handles it a matrix 1x1, and as a result i can not use multiplication. How can i fix it, maybe there is a good tutorial or a book for sage and linear algebra.
here is the work so far:
https://cloud.sagemath.com/projects/1d25492e-4517-4c0f-99c6-b1205afc8edf/files/2016-01-18-112346.sagews
Thank you in advance