30 Commits

Author SHA1 Message Date
jos
a2ae756fd1 Remove semicolons 2018-10-31 21:18:51 +01:00
jos
247aeabffa Refactor all unit tests to ES6 import/export 2018-10-31 21:17:23 +01:00
greenkeeper[bot]
c5971b371a Update standard to the latest version 🚀 (#1226)
* chore(package): update standard to version 12.0.0

* update to new lint version with --fix

I believe this mainly adds whitespace to `{}`'s.

* Replace assert.equal with assert.strictEqual

This breaks a lot of tests which I will endevour to fix in the next
commits.

* Fix most errors due to assert.strictEquals

Some instances of `strictEquals` are replaced by `deepEquals`.
`toString` has been used to make some string comparisions explicit.
Tests will still fail untill #1236 and #1237 are fixed.

* Fix assertion erros due to -0

With node 10, assert.strictEqual no longer considers `0 === -0`.
I missed these first time round as I was using node 8.

* Put toString correct side of bracket

I was converting the constructor to a string rather
than the result of the computation. Oops.

* Fixed #1236: quantileSeq has inconsistant return

* Update package-lock

* Fixed #1237: norm sometimes returning a complex number instead of number

* Fix cli tests

* More changes for standardjs, and fixes in unit tests
2018-09-08 16:33:58 +02:00
jos
9170e27618 Don't use multi line strings 2018-06-13 17:59:33 +02:00
jos
0583771e4e Cleanup unused variables and imports 2018-06-13 17:25:51 +02:00
jos
1f0a37a0cb Split initialized 'const' declarations into multiple statements 2018-06-13 15:31:37 +02:00
jos
17f07ec098 Fixed incompatibility with v4 (index.js file) 2018-06-13 14:02:50 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
934ea83df7 Fixed linting issues "Expected consistent spacing" 2018-06-12 21:38:11 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
635cd0b574 Revert using /lib/ in tests, use /src/ again. Fixed coverage testing. WIP 2018-06-06 22:11:52 +02:00
jos
79071b5e4f Fixed npm run test:browser not working (WIP) 2018-06-06 21:30:41 +02:00
jos
0c084b8e20 npm test working now 2018-06-06 15:36:36 +02:00
jos
cf5c1c1af8 Fixes #1054: renamed eye to identity 2018-06-06 10:52:08 +02:00
Harry Sarson
c23761bee0
separate tests that depend on node
Ddds new directory 'test/node' for tests which require node.
In practice these tests are the ones that depend on matrixmarket.
2018-05-01 17:38:51 +01:00
Harry Sarson
815ce4601d updated calculation of norm of vector 2017-04-16 20:09:31 +01:00
Harry Sarson
24888263c0 Correct the return value of qr example. 2017-04-13 12:09:02 +01:00
Harry Sarson
dbd1311ba4 implemented qr decomposition 2017-03-31 18:18:02 +01:00
Rogelio J. Baucells
06c3cd31b5 Issue #437 fix 2015-08-27 21:07:13 -04:00
Rogelio J. Baucells
8fb42ee11b fix tests 2015-05-29 21:34:29 -04:00
rjbaucells
ce95f7a837 lusolve() and slu() tests 2015-05-17 10:34:15 -04:00
rjbaucells
027462b081 slu() and lusolve() 2015-05-16 11:50:34 -04:00
rjbaucells
ceca6af8d3 slu() and lusolve() 2015-05-14 20:24:26 -04:00
Rogelio J. Baucells
737d476970 slu() and lusolve() 2015-05-08 15:45:03 -04:00
Rogelio J. Baucells
4347a3d16f sparse arithmetic updates 2015-04-27 12:03:59 -04:00
Rogelio J. Baucells
748fe0d0fb CcsMatrix refactoring 2015-04-24 11:13:17 -04:00
rjbaucells
a2d2e24e76 multiply() refactoring 2015-04-22 19:46:35 -04:00
rjbaucells
440c95b686 lup() function 2015-04-12 22:37:45 -04:00
Rogelio J. Baucells
cf03b03578 lusolve() - partial 2015-04-08 18:00:42 -04:00
rjbaucells
e7d3d7f660 lusolve() 2015-04-07 20:27:28 -04:00