SciRuby / numruby

Fast Numerical Linear Algebra Library for Ruby. NMatrix reimplementation.
BSD 3-Clause "New" or "Revised" License
45 stars 10 forks source link

Indexing: add support for n-dimensional matrices #19

Closed Uditgulati closed 5 years ago

Uditgulati commented 5 years ago

Also added tests and exception handling

Uditgulati commented 5 years ago

@prasunanand Is the error message for IndexError enough or should I make it more descriptive like "index [0,0,2] is out of bounds" or like "index on position 3 is out of bounds, 2 is not less than 2"?