ruby-numo / numo-narray

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

Numo::RObject is not very well known, but what was this created for? #194

Closed kojix2 closed 2 years ago

kojix2 commented 3 years ago

Hello @masa16

What is Numo::RObject? What was this created for?

It has been a mystery to me for a long time. there are very few real use cases for RObject. It looked different from other types, such as UInt8, Int32, SFloat, etc.

Recently, I've been playing with Tuple in Crystal and Python languages, and I've come to think that RObject in Numo::NArray is similar to Tuple. Thinking about it, Numo::RObject suddenly looks very interesting. In the Python language, Tuple is faster than List.

Could you tell us about the original idea/use of Numo::ROBject?

Thank you.