numo-narray
numo-narray copied to clipboard
Ruby/Numo::NArray - New NArray class library
I found a difference in `Numo::NArray#var` when I was comparing with numpy. ## numpy ```python >>> np.var(np.array([[1, 2], [3, 4]], dtype="f")) 1.25 ``` ## Numo::NArray ```ruby > Numo::DFloat[[1, 2], [3,...
Would be great to have a numpy-like pretty printing function for easily pretty printing matrices. https://stackoverflow.com/questions/2891790/how-to-pretty-printing-a-numpy-array-without-scientific-notation-and-with-given
It is inevitable to use GPU for applications like deep neural network. It will be nice if there were a CUDA interface like CuPy: https://cupy.chainer.org/
When I use Numo::DFloat instance nearly_eq method, I found difference. Ruby 2.3.0/2.4.1 gem version is 0.9.0.9. ## expect case > x = Numo::NArray[[[ -0.36133200184253111420, -0.26743056922401642339 , -0.15902724402321133379], [ -1.19318994409269407697, -1.44963239638332885839,...
Method? - rb_thread_call_without_gvl() ? Issues? - block access from another thread during operation.
The form of ERB's generated code isn't standardized and can be changed as Ruby 2.5 is. So code generation of numo-narray must not depend on it.
From [narray exercise](https://github.com/ruby-numo/narray/wiki/100-narray-exercises#95-convert-a-vector-of-ints-into-a-matrix-binary-representation-) Bit conversion does not return an array unlike in numpy ```python Python: # Author: Daniel T. McDonald I = np.array([0, 1, 2, 3, 15, 16, 32, 64,...
``` a = Numo::DFloat.new(20,30).seq ``` This style is right as a Ruby code, but I prefer less typing. First idea: ``` include Numo a = DFloat.new(20,30).seq ``` In this case,...
Numpy has confusing two functions: numpy.max and numpy.maximum. Numo::NArray#max() method is same as numpy.max. Now I need to define the specification of a method corresponding to [numpy.maximum](https://docs.scipy.org/doc/numpy/reference/generated/numpy.maximum.html). Current ideas: ```...
This PR introduces gcov to show a coverage. This PR also introduces coveralls.io to show the history of coverages. To use coveralls, please do as follows: - Sign up to...