177 Commits

Author SHA1 Message Date
jos
949261f92b Refactored usage of properties .isRange, .isIndex, .isResultSet, and .isHelp for their (safe) function equivalents 2017-08-12 13:31:09 +02:00
jos
fa01e993af Refactored x && x.isMatrix === true into type.isMatrix(x), same with isDenseMatrix and isSparseMatrix 2017-08-12 13:24:39 +02:00
jos
e10dd5bce5 Refactored x && x.isBigNumber === true into type.isBigNumber(x) 2017-08-12 11:54:53 +02:00
jos
c2c1888012 Fixed security vulnerabilities in math.subset 2017-04-22 13:58:26 +02:00
ericman314
abc19f663e Added tests for type/matrix/SparseMatrix.js 2017-02-27 20:54:10 -07:00
ericman314
37261395ac Initial commit of SparseMatrix.reshape 2017-02-27 20:16:57 -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
f4b794100e Replaced tabs with spaces 2016-03-03 20:29:08 +01:00
hgupta9
45a37ba731 class-wise API and new units 2016-03-02 18:30:55 +05:30
jos
4d1cd06285 Implemented new AssignmentNode and everything around it. Changed matrices not to clone elements when getting/setting a subset 2016-02-26 15:30:17 +01: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
c3ccdd6800 Fixed #523: In some circumstances, matrix subset returned a scalar instead of the correct subset 2015-12-24 16:03:39 +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 de Jong
08ccb24c06 Merge pull request #440 from rjbaucells/develop
Fix for issue #437 (Possible bug in lusolve)
2015-08-28 20:45:49 +02:00
Rogelio J. Baucells
06c3cd31b5 Issue #437 fix 2015-08-27 21:07:13 -04:00
jos
ddb707e9b8 Updated some more docs, examples, history 2015-07-28 09:51:31 +02:00
jos
396d951c95 Halfway implementing lazy loading 2015-07-21 20:49:52 +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
c7651def20 Minor refactoring 2015-07-18 12:01:22 +02:00
jos
493f34ec7b Split collection.js into separate (pure) functions 2015-07-18 11:47:38 +02:00
jos
6c592fa67c Added an example custom_loading.js 2015-07-14 21:13:00 +02:00
jos
d6cc806f9a Created methods Matrix.create for all DenseMatrix and SparseMatrix 2015-07-12 20:33:43 +02:00
jos
658990a49b Moved Range and Index under lib/type/matrix. Renamed the file Index.js to MatrixIndex.js to prevent name conflicts on Windows. Added an index.js file in lib/function 2015-07-12 20:21:27 +02:00
jos
0475924551 Use addScalar instead of add where possible 2015-07-11 16:38:36 +02:00
Max Bruckner
5f8b2559c3 Remove LaTeX of construction functions from util/latex.js 2015-06-14 20:08:19 +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
d927b08945 Merge remote-tracking branch 'origin/v2-Index' into v2-sparse 2015-05-22 15:25:21 -04:00
Rogelio J. Baucells
9b6a9c2298 Range.forEach() and map() API changes
Range.forEach() and map() API change to match Matrix
2015-05-21 13:17:17 -04:00
Rogelio J. Baucells
f2a179aa31 Merge branch 'josdejong/v2' into v2-Index
Conflicts:
	lib/core/typed.js
	lib/type/index/prototype/Index.js
2015-05-21 00:38:58 -04:00
Rogelio J. Baucells
7579412f7d Index dimension with immutable matrix 2015-05-20 17:41:03 -04:00
jos
6c7bf4acf0 Removed boolean, string, and null from the list with argument types, only leaving the directly supported types (which types can be converted to supported types is determined externally). Consistently renamed primitive types lower case (boolean, string, number, null) and non-primitive types uppercase (Complex, BigNumber, Function, Array, ...). 2015-05-20 21:08:26 +02:00
Rogelio J. Baucells
7e5980c812 tests - partial 2015-05-13 17:24:38 -04:00
Rogelio J. Baucells
9fe3395d7f tests - partial 2015-05-13 15:26:15 -04:00
rjbaucells
a432b732ef Merge remote-tracking branch 'origin/v2-test' into v2-sparse 2015-05-10 12:17:37 -04:00
rjbaucells
9f9cb5a71c Algorithm updates 2015-05-09 14:24:46 -04:00
Rogelio J. Baucells
b7e04cb5b8 datatype optimizations - partial 2015-05-09 11:04:44 -04:00
rjbaucells
e3cee480ec Merge remote-tracking branch 'origin/v2-test' into v2-sparse 2015-05-07 23:53:13 -04:00
rjbaucells
fe8599a1b6 Do not call equal() for all items 2015-05-05 20:16:18 -04:00
rjbaucells
1b02fc26c4 Revert "Do not call equal() for all items"
This reverts commit 0edf1fe27f9b1ce25d63b6024db5e5d32070d24d.
2015-05-05 20:05:50 -04:00
rjbaucells
0edf1fe27f Do not call equal() for all items 2015-05-05 19:58:47 -04:00
Rogelio J. Baucells
68a864eef0 Fixed bug in algorithm04 2015-05-05 16:56:36 -04:00
jos
8c032f2593 Replaced all instanceof checks with x && xisMyType === true checks 2015-05-05 15:09:21 +02: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