🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

linear-algebra

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linear-algebra - npm Package Compare versions

Comparing version

to
3.1.4

2

package.json
{
"name": "linear-algebra",
"version": "3.1.3",
"version": "3.1.4",
"description": "Efficient, high-performance linear algebra library",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,2 +5,4 @@ # linear-algebra

**NOTE: If you're serious about doing machine learning in the browser I recommend using [deeplearn.js](https://deeplearnjs.org/)**
Efficient, high-performance linear algebra library for node.js and browsers.

@@ -60,7 +62,7 @@

var m2 = m.mulEach(5); // multiply every element by 5
m2 === m1; // false
m2 === m; // false
// in-place
var m2 = m.mulEach_(5); // notice the _ suffix
m2 === m1; // true
m2 === m; // true
```

@@ -201,3 +203,3 @@

When adding floating point numbers together the end result is sometimes off by a minor decimal point (to see this try `0.1 + 0.2` in your JS console).
When adding floating point numbers together the end result is sometimes off by a minor decimal point (to see this try `0.1 + 0.2` in your JS console).

@@ -252,3 +254,3 @@ This module allows you to supply a custom adder (e.g. [`add`](https://www.npmjs.org/package/add)) as an option to the initialization call.

Matrix operations which result in a new matrix are implemented as two methods - a default method which returns a new `Matrix` instance and an _in-place_ method which causes the original to be overwritten.
Matrix operations which result in a new matrix are implemented as two methods - a default method which returns a new `Matrix` instance and an _in-place_ method which causes the original to be overwritten.

@@ -301,2 +303,2 @@ The _in-place_ versions are provided because - general speaking- memory allocations and garbage collection are expensive operations you don't want happening when you're performing lots of calculations. Overwriting an existing array is [twice as fast](http://jsperf.com/create-new-array-vs-overwrite-existing) as creating a new one. And since changing the size of an array is also an expensive operation, even if a matrix operation results in a smaller matrix than before the internal array is kept at the same size:

MIT - see [LICENSE.md](https://github.com/hiddentao/linear-algebra/blob/master/LICENSE.md)
MIT - see [LICENSE.md](https://github.com/hiddentao/linear-algebra/blob/master/LICENSE.md)