52 Commits

Author SHA1 Message Date
jos
967e65cceb Refactored usage of properties .isNode, .isSymbolNode, etc. into using functions like type.isNode(x) for security 2017-08-12 14:38:03 +02:00
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
9666c16378 Fixed #846: Issues in the functions map, forEach, and filter when used in the expression parser 2017-07-29 14:05:27 +02:00
jos
aaa609d046 Fixed wrong function name of map.transform.js 2017-06-26 19:12:53 +02:00
jos
73b774a51b Use safe map, forEach, join 2017-05-05 12:32:21 +02:00
jos
71ae3ea076 Consistent API for both derivative and simplify (dropped transform) 2017-01-20 21:43:40 +01:00
jos
84755ca968 Cleaned up unused imports 2016-10-02 14:37:52 +02:00
jos
b016385fe0 Fixed #665: functions map, forEach, and filter now invoke callbacks which are a typed-function with the correct number of arguments 2016-05-18 22:10:34 +02:00
jos
41949b2253 Fixed IndexError not always providing a max property 2016-02-29 20:41:52 +01:00
jos
12eee9e856 Moved filter, forEach, map, partitionSelect, sort from utils to matrix section 2016-02-27 20:00:42 +01:00
jos
2ef1a96094 Fixed broken unit test 2015-12-05 11:57:28 +01:00
jos
931736658d Added support for getting/setting object properties to Index and math.subset 2015-12-04 09:53:35 +01:00
jos
188f43a26a Lazy loading works ... hurray!!! 2015-07-22 21:13:15 +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
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
c810981238 Method Node.compile() no longer needs math to be passed as argument. 2015-05-27 13:30:35 +02:00
Rogelio J. Baucells
fedae8e386 Set removal 2015-05-20 18:16:17 -04:00
rjbaucells
799ccc9463 set from parser 2015-05-13 22:45:28 -04:00
rjbaucells
6f8fca77cb tests - final 2015-05-13 20:29:43 -04:00
rjbaucells
a85cbee709 transform - partial 2015-05-12 20:32:23 -04:00
rjbaucells
b23d6ef7d1 Set 2015-05-12 20:01:17 -04:00
jos
06b9664b87 Removed more instanceof checks 2015-05-05 15:21:57 +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
jos
e348cb70a2 Refactored Range and Index. Reorganized index.js 2015-04-30 20:36:45 +02:00
jos
c424968173 Merge remote-tracking branch 'origin/v2' into v2 2015-04-28 21:02:57 +02:00
jos
de7f84ad3a Name for a factory is now optional. All transform functions do no longer export something to the math namespace 2015-04-28 20:49:35 +02:00
Max Bruckner
1c76430dda Get rid of 'instanceof' for Nodes (except for constructors) 2015-04-28 10:09:19 +02:00
jos
444dc1c521 Created an index file for all transforms and for units 2015-04-27 20:20:33 +02:00
jos
e8c6dcf7c1 Refactored filter.transform, forEach.transform, and index.transform into typed-functions. 2015-04-27 20:14:07 +02:00
jos
811508906c Refactored functions range, subset, concat.transform, map.transform, max.transform, mean.transform, min.transform, range.transform, subset.transform to typed-functions 2015-04-27 19:11:21 +02:00
jos
d3d3212633 Refactored all nodes into factory functions (see #342) 2015-04-26 21:25:31 +02:00
jos
8a68bb56e4 Merged math.js v1.5 into v2. Format support of functions eye and diag still needs to be fixed 2015-03-31 22:07:47 +02:00
jos
5cab0641e9 Simplified the factory structure a little bit. Reworked reviver and BigNumber to factories 2015-03-26 21:03:55 +01:00
Rogelio J. Baucells
2077c39885 Matrix inheritance implementation 2015-03-10 15:28:19 -04:00
Rogelio J. Baucells
b4463d9ef3 Initial require() changes 2015-03-04 13:53:32 -05:00
jos
70a476c357 Replaced all require('decimal.js') with require('../type/BigNumber'), containing the toJSON and fromJSON methods for BigNumber 2015-02-18 20:41:27 +01:00
jos
86bcd55352 Changed the way transforms are registered internally, making Node.compile faster, and enabling lazy-loading constants 2015-01-13 10:48:52 +01:00
jos
7132a6f3c2 Fixed #221 for one-based implementations of map and forEach 2014-10-14 09:03:04 +02:00
jos
839e596772 Implemented transform and traverse 2014-10-11 18:03:41 +02:00
jos
52a922e937 Fixed #210: Disabled array notation for ranges in a matrix index the expression parser 2014-09-09 17:33:53 +02:00
jos
f1313d8be7 Implemented a function filter(x, test) 2014-09-04 20:52:51 +02:00
jos
40f0bb91aa Fixed #210: an zero-based issue when getting a matrix subset using an index containing a matrix 2014-08-25 20:35:10 +02:00
jos
f23c87c4f7 renamed __transform__ to transform 2014-08-16 17:41:37 +02:00
jos
94262f6f89 Functions map and forEach invoke the callback with one-based indices when used from within the expression parser 2014-08-03 21:05:36 +02:00
jos
7b08047061 Changed min, max, and mean to one-based dim 2014-07-24 21:35:11 +02:00