numo-narray
numo-narray copied to clipboard
Multiplying by BigDecimal
Hey,
I ran into an issue that Numo::SFloat.cast([1]) * BigDecimal(1)
raises an NoMethodError
:
in '*': undefined method 'cast' for nil:NilClass (NoMethodError)
Is this expected or is a PR welcome to support multiplication by types that implement #to_f
method (which in the end solves the problem)?