Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ml-matrix

Package Overview
Dependencies
Maintainers
1
Versions
74
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ml-matrix - npm Package Compare versions

Comparing version 1.0.0-0 to 1.0.0

Documentation.md

9

History.md

@@ -0,1 +1,10 @@

1.0.0 / HEAD
==================
* add static min and max methods
* add fullname synonyms for some methods
* support all arithmetic operators and Math functions including static versions
* convert project to use ES2015 classes
* fix abs method not returning `this`
0.1.0 / 2015-06-11

@@ -2,0 +11,0 @@ ==================

6

package.json
{
"name": "ml-matrix",
"version": "1.0.0-0",
"version": "1.0.0",
"description": "Matrix manipulation and computation library",

@@ -11,3 +11,4 @@ "main": "src/index.js",

"scripts": {
"test": "mocha --require should-approximately-deep --reporter mocha-better-spec-reporter --recursive"
"test": "mocha --require should-approximately-deep --reporter mocha-better-spec-reporter --recursive",
"doc": "jsdoc2md src/matrix.js > Documentation.md"
},

@@ -44,2 +45,3 @@ "repository": {

"csv-parse": "^1.0.0",
"jsdoc-to-markdown": "^1.1.1",
"mathjs": "^2.1.1",

@@ -46,0 +48,0 @@ "mocha": "^2.2.5",

@@ -13,2 +13,4 @@ # ml-matrix

## [Documentation](./Documentation.md)
## License

@@ -15,0 +17,0 @@

@@ -50,3 +50,3 @@ 'use strict';

CholeskyDecomposition.prototype = {
get leftTriangularFactor() {
get lowerTriangularMatrix() {
return this.L;

@@ -53,0 +53,0 @@ },

@@ -95,3 +95,3 @@ 'use strict';

},
get lowerTriangularFactor() {
get lowerTriangularMatrix() {
var data = this.LU,

@@ -114,3 +114,3 @@ rows = data.rows,

},
get upperTriangularFactor() {
get upperTriangularMatrix() {
var data = this.LU,

@@ -117,0 +117,0 @@ rows = data.rows,

@@ -101,3 +101,3 @@ 'use strict';

},
get upperTriangularFactor() {
get upperTriangularMatrix() {
var qr = this.QR,

@@ -120,3 +120,3 @@ n = qr.columns,

},
get orthogonalFactor() {
get orthogonalMatrix() {
var qr = this.QR,

@@ -123,0 +123,0 @@ rows = qr.rows,

@@ -16,5 +16,5 @@ 'use strict';

return nRows.clone();
} else if (typeof nRows === 'number' && nRows > 0) { // Create an empty matrix
} else if (Number.isInteger(nRows) && nRows > 0) { // Create an empty matrix
super(nRows);
if (typeof nColumns === 'number' && nColumns > 0) {
if (Number.isInteger(nColumns) && nColumns > 0) {
for (var i = 0; i < nRows; i++) {

@@ -24,3 +24,3 @@ this[i] = new Array(nColumns);

} else {
throw new TypeError('nColumns must be a positive number');
throw new TypeError('nColumns must be a positive integer');
}

@@ -245,2 +245,5 @@ } else if (Array.isArray(nRows)) { // Copy the values from the 2D array

apply(callback) {
if (typeof callback !== 'function') {
throw new TypeError('callback must be a function');
}
let ii = this.rows;

@@ -247,0 +250,0 @@ let jj = this.columns;

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc