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)?
Hey,
I ran into an issue that
Numo::SFloat.cast([1]) * BigDecimal(1)
raises anNoMethodError
: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)?