Can't reshape to ndim 0
ankane opened this issue · 2 comments
ankane commented
Trying to reshape to a 0-dimensional array raises ArgumentError: No argrument
(with a small typo)
require "numo/narray"
x = Numo::NArray.cast([1])
p x.ndim
x2 = x.reshape # fails
p x2.ndim
masa16 commented
numo-narray does not support creating 0-dimensional array. Why do you think you require 0-dimensional array?