SciRuby / nmatrix

Dense and sparse linear algebra library for Ruby via SciRuby
Other
469 stars 133 forks source link

Extension to work with timestamps and time ranges #382

Open v0dro opened 9 years ago

v0dro commented 9 years ago

It would be useful to have an extension for managing time stamps and ranges at C level, to perform things faster and avoid bloat by using the ruby Time class.

Maybe something on the lines of this: http://docs.scipy.org/doc/numpy/reference/arrays.datetime.html

translunar commented 9 years ago

We did talk about having matrices that could be keyed by strings instead of integers. I think the basic idea would just be to use Ruby hashes to convert whatever datatype to consecutive integers.