numjs icon indicating copy to clipboard operation
numjs copied to clipboard

Support broadcasting for additions and multiplications

Open nicolaspanel opened this issue 10 years ago • 10 comments

see numpy doc for more info

nicolaspanel avatar Feb 15 '16 08:02 nicolaspanel

This would be amazing. Is it in on the horizon at all?

SimonBiggs avatar Nov 21 '16 03:11 SimonBiggs

Hi @SimonBiggs It is definitely on the horizon but I am very busy right now so I can't spend time on this feature. Let me know if you want to contribute Best regards

nicolaspanel avatar Nov 21 '16 08:11 nicolaspanel

Completely understandable :). At the moment I'm just trying to work out if I should go down the boost + emscripten path with C++ or if I can use typescript alone. I'm thinking I should just bite the bullet and dive into C++ and emscripten with boost for my numerical work for now.

SimonBiggs avatar Nov 21 '16 23:11 SimonBiggs

@SimonBiggs : did C++ and emscripten with boost worked well ? BR

nicolaspanel avatar Jan 19 '17 07:01 nicolaspanel

In the end I decided that for the time being it was just best to use a server. I decided to use Google App engine. The underlying module I've written needs more validation and testing anyway. I really should focus on that before I make a front end interface. Front end interfaces tend to draw people who trust me too much.

It's getting there, but I think with respect to emscripten I might just wait 12 months and we just might have a Fortran web assembly compiler. That just may solve many numerical needs within the browser.

SimonBiggs avatar Jan 19 '17 07:01 SimonBiggs

If I have a 2d array and wish to subtract a scalar value from it - in what way can this be carried out in numjs without broadcasting as a feature? Thanks.

Spiruel avatar Jul 21 '17 14:07 Spiruel

@Spiruel tank a look to https://github.com/nicolaspanel/numjs/blob/master/README.md#basic-operations (especially subtract method)

nicolaspanel avatar Dec 09 '17 00:12 nicolaspanel

Hi @SimonBiggs It is definitely on the horizon but I am very busy right now so I can't spend time on this feature. Let me know if you want to contribute Best regards

Hi, I'd like to work on this. I am the author of this library: https://github.com/caph1993/numpy-js/tree/main. My library supports broadcasting already, and just like this library, it works internally with a single flat array, so the code adaptation shouldn't be too difficult.

caph1993 avatar Mar 12 '24 20:03 caph1993