NumSharp
NumSharp copied to clipboard
Implicit operators for >, >=, <, <=
x == 1 gives a result which is NDArray
x>1 and other operators like >=, <, <= give null result
np.where is yet to be implemented.
I have done some work with np.where in this commit https://github.com/deepakkumar1984/NumSharp/commit/8bfa4f2484fc974e10e250f6b7ef5da0f381b683 the first parameter is a condition for which we need to finish the implementation under https://github.com/SciSharp/NumSharp/tree/master/src/NumSharp.Core/Operations/Elementwise
Most of the code in commented and return as null
I misunderstood np.where, I was sure that the first argument is something of a sort of Expression<Func<..., bool>>. I'll need to implement each (comparing) operator separately and np.where will work then. I'll open up a separate issue for that. This might take a while as I'm unavailable (sunday is not a day off in my country 😅)
Same thing happened for me, shouldn't return null:

Null because it is not implemented.