49 Commits

Author SHA1 Message Date
jos
600cfb403a Fix return statement should not contain assignment 2018-06-13 17:37:27 +02:00
jos
0583771e4e Cleanup unused variables and imports 2018-06-13 17:25:51 +02:00
jos
f1ce473457 Consistend camel case naming of variables and functions 2018-06-13 16:09:51 +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
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
c2777c856b Fixed linting issues "Unexpected template string expression" 2018-06-12 21:18:45 +02:00
jos
024b2a9e26 Fix most lint errors using npx standard --fix 2018-06-10 20:28:27 +02:00
jos
35329d7db4 Move lib to src 2018-06-06 14:37:39 +02:00
Sebastien Piquemal
aa0249d458 fixed npm install, changed src to lib 2013-08-14 15:00:12 +04:00
josdejong
20e4456747 Fixed #26: functions ones and zeros now adhere to geometric dimensions. 2013-08-11 13:33:11 +02:00
josdejong
0b45b89dd0 Fixed #56: not allowing matrices with empty dimensions like [[],[]] 2013-08-10 22:06:20 +02:00
josdejong
4b20d7cb88 Directly export prototypes as module.exports 2013-08-07 14:22:44 +02:00
josdejong
283e76e4e9 Packed all functions in a closure (makes them environment independent) 2013-08-07 14:12:07 +02:00
josdejong
fe06d514e0 Created shared module math.js for all functions (resolves circular references) 2013-08-06 21:50:15 +02:00
josdejong
8cc9ceb980 Changed all source files into node.js modules 2013-08-05 23:05:23 +02:00
josdejong
6a6b5c3e61 Replaced all x instanceof Array with Array.isArray(x) 2013-08-04 14:30:38 +02:00
josdejong
19b507b9f0 Refactored all code to 2 space indentation 2013-08-04 14:07:47 +02:00
josdejong
e9b9f0c4e3 Changed matrix indexes from one-based to zero-based (Fixed #23) 2013-07-21 22:11:11 +02:00
josdejong
881889dec0 Renamed unaryminus to unary 2013-07-08 14:11:42 +02:00
josdejong
504b1fa9a1 Functions size and squeeze now return a Matrix instead of an Array as output on Matrix input 2013-07-03 14:47:40 +02:00
josdejong
33bbd402b2 Implemented context variable end for subsets of strings 2013-05-27 21:48:48 +02:00
josdejong
23ffed0994 Implemented function subset, including support for string and scalar 2013-05-26 15:43:21 +02:00
josdejong
c3dcf6aa43 Some comments updated 2013-05-20 09:42:55 +02:00
Bryan Cuccioli
169c3ea593 Use polynomial-time algorithm to compute determinant. 2013-05-19 01:26:15 -04:00
josdejong
7d5982035b Updated documentation of all methods. Changed cube and square to evaluate matrices element wise. 2013-04-20 14:04:34 +02:00
josdejong
2742ab4fd5 Removed all instanceof checks for Range 2013-04-14 14:32:24 +02:00
josdejong
50276ee814 Removed the build-in parser documentation from the core library. 2013-04-11 19:52:18 +02:00
josdejong
d073c6cc31 Fixed transpose not returning result as a Matrix in case of Matrix input. 2013-04-06 15:32:39 +02:00
josdejong
f2c4104ad7 Implemeneted method concat for matrix concatenation 2013-04-06 11:52:45 +02:00
josdejong
fbdac7cfed Implemented matrix support for methods max and min 2013-04-05 21:18:42 +02:00
josdejong
029158e7df Implemented method inv 2013-04-05 19:53:42 +02:00
josdejong
2ecac3ae3b Implemented transpose 2013-04-03 22:32:07 +02:00
josdejong
78bf9dbf4a Renamed identity to eye. 2013-04-03 22:11:06 +02:00
josdejong
7fc49f4058 Implemented method det (determinant) 2013-04-03 22:08:55 +02:00
josdejong
5ea8366d3e Implemented method squeeze 2013-03-28 21:44:29 +01:00
josdejong
b07920fac8 Removed Vector, as it is redundant with Matrix and only adds complexity. 2013-03-28 21:05:05 +01:00
josdejong
0309f62e3f Renamed method eye to identity 2013-03-28 20:17:21 +01:00
josdejong
8cd6bd5396 implemented method diag 2013-03-24 20:55:04 +01:00
josdejong
05f26c6e37 Parser now returns a Matrix instead of an Array. Some fixes and extensions in Matrix, Vector, and Range 2013-03-24 20:07:48 +01:00
josdejong
015701afa6 Implemented/improved metods ones, zeros, eye 2013-03-23 21:30:53 +01:00
josdejong
895c33cdbe Removed convenience method range 2013-03-23 15:46:59 +01:00
josdejong
c080426140 Rearrangements in the utility methods (format, size, map, forEach) 2013-03-23 12:33:48 +01:00
josdejong
598262b81a Implemented data type Range, method range, and range support in the Parser. 2013-03-22 20:42:40 +01:00
josdejong
5a584eb56e implemented Vector. added functionality to Matrix 2013-03-21 21:57:18 +01:00
josdejong
936542e988 Separated method size into utility methods size and validate 2013-03-19 21:04:00 +01:00
josdejong
0c41367b6f Implemented fallback to primitive value of objects for all methods 2013-03-19 20:25:06 +01:00
josdejong
cbfbf91d6b implemented size validation in method size 2013-03-14 20:23:55 +01:00
josdejong
8a6548027f Implemented array support for all methods 2013-03-13 21:45:05 +01:00