mdipierro / nlib

The book "Annotated Algorithms in Python" and the nlib.py library
1.33k stars 114 forks source link

To avoid error, type check is added. #4

Closed tianrenli92 closed 7 years ago

tianrenli92 commented 8 years ago

c will be a float if the result of (1.0/(A.TA))(A.T*b) is a 1x1 matrix according to Matrix.mul .

When I'm doing my final project of CSC431 I find this bug. For details run the attached code.

final_project.txt