Change function for nb_invert so that ~matrix returns the inverted matrix rather than inverting inplace.

This commit is contained in:
Andrew Hale
2012-01-16 09:01:11 +00:00
parent ab0cbaa7dc
commit 3cad3521a9

View File

@@ -2049,7 +2049,7 @@ static PyNumberMethods Matrix_NumMethods = {
(unaryfunc) 0, /*tp_positive*/
(unaryfunc) 0, /*tp_absolute*/
(inquiry) 0, /*tp_bool*/
(unaryfunc) Matrix_inv, /*nb_invert*/
(unaryfunc) Matrix_inverted, /*nb_invert*/
NULL, /*nb_lshift*/
(binaryfunc)0, /*nb_rshift*/
NULL, /*nb_and*/