Open ljulliar opened 5 years ago
Try this:
require 'nmatrix'
m = NMatrix.new([2, 3], [0, 1, 2, 3, 4, 5], dtype: :int64)
m
To be honest and not afraid to criticize, NMatrix is not well maintained, and Numo::NArray is better in many ways. Please try NArray before giving up Nmarix and using NumPy.
Just installed nmatrix on Ruby 2.5.3 / Debian 9. Trying to print a simple matrix under irb would crash: