Raise Linalgerror Singular Matrix