The "sum" method of "Numo::RObject", which contains the number, returns a strange value.
require "numo/narray"
p Numo::RObject.cast([1, 2, 3]).sum
#=> 13 (should be 6)
p Numo::RObject.cast([1.0, 2.0, 3.0]).sum
#=> 54043195528445954 (should be 6.0)
Is this behavior only occurring in my environment,
MacOS 10.14
Ruby 2.6.2p47 built with Apple clang version 11.0.0 (clang-1100.0.33.16)
The "sum" method of "Numo::RObject", which contains the number, returns a strange value.
Is this behavior only occurring in my environment,