Linear algebra tuned with LMS