Closed genya0407 closed 7 years ago
Daru::Vector#> , which is method alias of Daru::Vector#gt , should be much convenient, but it seems that there isn’t such method. Is there any supecial reasons ? Of course, I think other comparison operators should be also exist.
Daru::Vector#>
Daru::Vector#gt
What I imagine:
vector = Daru::Vector.new([1,2,3,4,5]) vector.where((vector > 1) & (vector < 5)) # => Daru::Vector.new([2,3,4])
Works. There's no real reason why its not there. I guess I'm lazy.
Daru::Vector#>
, which is method alias ofDaru::Vector#gt
, should be much convenient, but it seems that there isn’t such method. Is there any supecial reasons ? Of course, I think other comparison operators should be also exist.What I imagine: