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
jos
7bc1dd3c8c
Move isBigNumber, isMatrix, and isCollection into is.js
2018-10-31 18:56:41 +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
Jason Shin
c4662ab3bb
Implemented function getMatrixDataType ( #1172 )
...
* getMatrixDataType implemented
* implementing the last feedback ;)
* refactor
* hiding getArrayDataType from public API
2018-08-12 18:23:04 +02:00
jos
0513898a4b
Fix using new for side effects
2018-06-13 16:31:18 +02:00
jos
1f0a37a0cb
Split initialized 'const' declarations into multiple statements
2018-06-13 15:31:37 +02:00
jos
b6b36bfd9b
Use strict equality checks everywhere (=== and !==)
2018-06-13 15:02:21 +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
ee008d992e
Fixes failing unit tests on IE11/Edge
2018-06-04 21:19:10 +02:00
jos
99ab11b234
Dropped constant uninitialized
2018-02-04 13:09:09 +01:00
jos
e45a00ce05
Fixed #929 : FibonacciHeap.isEmpty returning wrong result
2017-08-21 20:17:07 +02:00
ericman314
abc19f663e
Added tests for type/matrix/SparseMatrix.js
2017-02-27 20:54:10 -07:00
Pat Grasso
4cca0bf6e4
Add reshape() to Matrix types + test
...
This allows for one to call `reshape()` directly from an instance of
DenseMatrix (default behavior modifies in-place).
2017-02-24 11:02:43 -05:00
jos
e9eda030ee
Fixed matrix.subset mutating the replacement matrix when unsqueezing it
2016-04-26 09:11:59 +02:00
jos
61f6ab0667
Merge branch 'develop' into feature/objectsupport
...
Conflicts:
HISTORY.md
2016-01-03 19:49:06 +01:00
jos
2adf01e548
Getting/setting object properties working (still needs a refactoring step)
2016-01-02 15:16:12 +01:00
Jos de Jong
ed729478de
lib/type/matrix/MatrixIndex.js
2015-12-24 16:01:26 +00:00
jos
931736658d
Added support for getting/setting object properties to Index and math.subset
2015-12-04 09:53:35 +01:00
Ben Nelson
1a9f7bf2bc
Fix a small bug with new types.SparseMatrix()
2015-10-25 14:40:48 -04:00
Rogelio J. Baucells
06c0515d4a
Merge pull request #461 from rjbaucells/develop
...
Sparse Matrix non sorted index issue #452
2015-09-07 13:02:14 -04:00
Rogelio J. Baucells
9e47b8a316
Sparse Matrix non sorted index issue
...
Fixed issue #450
2015-09-03 19:45:48 -04:00
jos
9d5799f5ca
Extended memoize with support for a custom hasher.
2015-07-18 13:41:06 +02:00
jos
2353c4a61e
Renamed folders util to utils
2015-07-18 13:22:38 +02:00
jos
57a47b3b5a
Moved pure collection functions to lib/util/collection
2015-07-18 12:53:07 +02:00
jos
493f34ec7b
Split collection.js into separate (pure) functions
2015-07-18 11:47:38 +02:00
jos
d6cc806f9a
Created methods Matrix.create for all DenseMatrix and SparseMatrix
2015-07-12 20:33:43 +02:00
jos
55288ffe5a
The size of Arrays is no longer validated. Matrices will validate this on creation (still needs to be done for SparseMatrix).
2015-05-31 20:28:46 +02:00
Rogelio J. Baucells
7579412f7d
Index dimension with immutable matrix
2015-05-20 17:41:03 -04:00
Rogelio J. Baucells
9fe3395d7f
tests - partial
2015-05-13 15:26:15 -04:00
rjbaucells
464c4c5434
tests - partial
2015-05-12 22:31:23 -04:00
Rogelio J. Baucells
b7e04cb5b8
datatype optimizations - partial
2015-05-09 11:04:44 -04:00
jos
3242cd8550
Attached properties like.type === 'Complex' and .isComple to all data types
2015-05-05 14:35:45 +02:00
jos
7e3eda8603
Moved all data types and their construction functions into a folder of their own under ./lib/type
2015-05-05 13:51:24 +02:00
jos
758107428c
Moved collection.js and Matrix.js under ./lib/type/matrix, moved construction functions matrix.js and sparse.js to ./lib/type/matrix/function, and created an index file.
2015-05-05 12:00:07 +02:00
Rogelio J. Baucells
1b3cf30e98
Fixed performance problems with array
2015-05-05 01:25:15 -04:00
rjbaucells
2512b74b85
Matrix datatype
2015-04-28 20:11:32 -04:00
Rogelio J. Baucells
8047a4853f
multiply() - poc
2015-04-28 12:07:02 -04:00
Rogelio J. Baucells
a80d135b56
multiply() - poc
2015-04-28 00:22:23 -04:00
Rogelio J. Baucells
d535bc9aaf
SparseMatrix pattern
2015-04-27 16:58:47 -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
Rogelio J. Baucells
8a6ee871ae
merge sync
2015-04-22 12:49:09 -04:00
Rogelio J. Baucells
9ffacdd2ec
Merge branch 'v2' of https://github.com/josdejong/mathjs into josdejong-v2
...
Conflicts:
test/type/matrix/CcsMatrix.test.js
test/type/matrix/DenseMatrix.test.js
2015-04-22 12:48:42 -04:00