Есть ли пакет, похожий на numpy, для узла, и если нет, то почему бы и нет? [закрыто]C++

Программы на C++. Форум разработчиков
Ответить
Гость
 Есть ли пакет, похожий на numpy, для узла, и если нет, то почему бы и нет? [закрыто]

Сообщение Гость »


I've always been amazed at how much much much faster things become if you manage to rewrite code that loops though your ndarray and does something, with numpy functions that work on the whole array at once. I'm looking for something similar in node. So far I have turned up some things, none of which look promising:
  • scikit-node, runs scikit-learn in Python, and interfaces with node. I haven't tried it, it may not give me the speed that I would like.
  • There are some rather old, and newer, javascript matrix libraries (sylvester, gl-matrix, ...). In addition to not being sure they work well with matrices larger than 4x4 (which is most useful in 3D rendering), they seem to be native javascript (and some, not sure these, use webGL acceleration). Great on the browser, not so on node.
As far as I know, npms can be written in C++. I'm wondering why there are no numpy-like libraries for node? Is there just not enough interest in node yet from the community that needs that kind of power? Is there a hope that ES6 features (list comprehensions) will allow javascript compilers to automatically vectorise native JS code to C++ speeds? Am I missing something else?
I'm not asking for "what is the best package to do xyz". I'm just wondering if there is a technical reason there is no package to do this on node, a social reason, or no reason at all and there is just a package I missed. Maybe to avoid too many opinionated criticism:
I have about 10000 matrices that are 100 x 100 each. What's a reasonable fast way to add them together?
After some more googling for "node.js scientific computing" there are links to some very interesting notes: Basically as far as I understand now, no-one has bothered so far. Also, since there are some major omissions in the js TypedArrays (such as 64bit ints), it might be hard to add good support by just using NPMs, and not hacking the engine itself --- something that would defeat the purpose. Then again, I didn't further research this last statement.


Источник: https://stackoverflow.com/questions/314 ... ot-why-not
Ответить

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

Вернуться в «C++»