ruby-numo / numo-narray

Ruby/Numo::NArray - New NArray class library
http://ruby-numo.github.io/narray/
BSD 3-Clause "New" or "Revised" License
418 stars 42 forks source link

`inplace` flag for Numo::GSL::Sf functions. #54

Closed genya0407 closed 7 years ago

genya0407 commented 7 years ago

inplace flag doesn't seem to work with functions defined in Numo::GSL::Sf.

na = Numo::DFloat.new(3).fill 100
Numo::GSL::Sf.log_abs na.inplace
p na # => [100.0, 100.0, 100.0]
masa16 commented 7 years ago

fixed: https://github.com/ruby-numo/gsl/commit/12d1d03a48e951c08445c301bd9c339688244b5c