Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Sparse matrix inequalities #2586
Sparse matrices can now use the <, >, <=, and >= operators, with scalars, dense matrices (with broadcasting), and sparse matrices (of the same shape). It should be noted that when comparing with dense matrices the sparse matrix should be on the left hand side.
referenced this pull request
Jun 23, 2013
I should note, having the non strict inequalities
But the non strict inequalities are generally inefficient and, in every case I can think of, be replaced by strict inequalities and
I wouldn't worry about such relatively small code size increases.
Here it seems the
The rebase looks OK to me in git, maybe the strangeness is just github thing. The changes look OK too.
However, this idiom
would be better written as
Btw, other stuff on the TODO list: npy_bool_wrapper is still defined as
Needs to be fixed + tests added.