2012年7月4日
Find index for the minimum value of NArray element in Ruby
2012-07-04
Suppose that a[1.1, 1.3, 0.2, 3.1] is a NArray. a.min #=> 0.2 a.eq(a.min) #=> [0, 0, 1, 0] a.eq(a.min).w […]
Suppose that a[1.1, 1.3, 0.2, 3.1] is a NArray. a.min #=> 0.2 a.eq(a.min) #=> [0, 0, 1, 0] a.eq(a.min).w […]