sloisel / numeric

Numerical analysis in Javascript
http://www.numericjs.com/
Other
1.42k stars 177 forks source link

numeric.mapreduce support for scalars #3

Closed yuzeh closed 12 years ago

yuzeh commented 12 years ago

None of the functions created by mapreduce return a meaningful value when a scalar is passed in. I have a one-line change in mapreduce that facilitates this.

I'm not sure if this is a feature you would want, but for me, this preserves some of the MATLAB semantics that I have gotten used to.

Also, I was confused as to how to run the tests. It seems like all of the testing scripts point at your server.

sloisel commented 12 years ago

I'll add some information about running regression tests at least using node.

sloisel commented 12 years ago

There was a bug in this implementation (semicolon needs to occur after the body in the generated code). In order to run unit tests, use the build.sh script in the tools subdirectory.