View Single Post
Old 04-06-2021, 12:36 PM   #2
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
The latest snapshots builds (like, yesterday's ;p) of Python 3 should include numpy (on armv7 devices, at least, i.e., everywhere except things running FW < 4.x).

It should *probably* work, I haven't actually tested it, but I think I've nailed the final build issues (numpy's build system is kind of... esoteric, shall we say).

Fair warning: If it works, it'll probably be slow as hell, though.

EDIT: Yup, works.

Code:
┌─(ROOT@kindle:pts/0)──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────(~)─┐
└─(1.47:58%:23:41:73%:#)── python3                                                                                                                                                                                                                                                                                                                     ──(Tue, Apr 06)─┘
Python 3.9.4 (default, Apr  5 2021, 06:23:37) 
[GCC 7.5.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy as np
>>> a = np.arange(15).reshape(3, 5)
>>> a
array([[ 0,  1,  2,  3,  4],
       [ 5,  6,  7,  8,  9],
       [10, 11, 12, 13, 14]])
>>>

Last edited by NiLuJe; 04-06-2021 at 05:43 PM.
NiLuJe is offline   Reply With Quote