Skip to content

Commit

Permalink
Rename some files
Browse files Browse the repository at this point in the history
  • Loading branch information
gnh1201 committed Nov 14, 2024
1 parent d9ac6d0 commit 9b50e5b
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 6 deletions.
2 changes: 1 addition & 1 deletion app.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ if (typeof JSON === "undefined") {
require("app/assets/js/core-js-3.38.0.minified");

// Squel.js SQL query string builder for Javascript
var squel = require("app/assets/js/squel-basic-5.13.0.hiddentao-afa1cb5.wsh");
var squel = require("app/assets/js/squel-basic-5.13.0-afa1cb5.wsh");

// JavaScript YAML parser and dumper.
var yaml = require("app/assets/js/js-yaml-4.1.0.wsh");
Expand Down
24 changes: 23 additions & 1 deletion app/assets/js/numbers-0.7.0.wsh.js
Original file line number Diff line number Diff line change
Expand Up @@ -1443,6 +1443,7 @@ matrix.determinant = function (m) {
return m[0][0] * m[1][1] - m[0][1] * m[1][0];
}

/*
for (col = 0; col < numCol; col++) {
diagLeft = m[0][col];
diagRight = m[0][col];
Expand All @@ -1454,8 +1455,29 @@ matrix.determinant = function (m) {
det += diagRight - diagLeft;
}

return det;
*/

// new algorithm for matrix determinant #161 @youngbizman
// https://github.com/numbers/numbers.js/pull/161
// https://github.com/numbers/numbers.js/issues/160
var indexColumn = 0;
var result = 0;
var numberOfAddedRows = 0;
while (indexColumn < numCol) {
numberOfAddedRows = 0;
var newArray = new Array();
while (numberOfAddedRows < numRow - 1) {
newArray.push(m[numberOfAddedRows + 1].slice(0, indexColumn).concat(m[numberOfAddedRows + 1].slice(indexColumn + 1)));
numberOfAddedRows++;
}

result += Math.pow(-1, indexColumn) * m[0][indexColumn] * matrix.determinant(newArray);
indexColumn++;
}

return result;
};

/**
Expand Down
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions lib/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ function start(callback) {
}
addScript("app/assets/js/html5shiv-printshiv-3.7.3.min.js");
if (msie < 9) {
addScript("app/assets/js/respond-1.4.2.edited.js");
addScript("app/assets/js/selectivizr-1.0.2.edited.js");
addScript("app/assets/js/respond-1.4.2.wsh.js");
addScript("app/assets/js/selectivizr-1.0.2.wsh.js");
addScript("app/assets/js/excanvas.arv-565afad.js");

waitUntil(function(test, ttl) {
Expand All @@ -221,7 +221,7 @@ function start(callback) {
return window.jQuery;
});
}
addScript("app/assets/js/jquery.html5-placeholder-shim.jcampbell1-5a87f05.js");
addScript("app/assets/js/jquery.html5-placeholder-shim-5a87f05.js");

// load Modernizr (2.8.3)
addScript("app/assets/js/modernizr-2.8.3.min.js");
Expand Down Expand Up @@ -254,7 +254,7 @@ exports.start = start;
exports.reload = reload;
exports.close = close;

exports.VERSIONINFO = "Browser Compatibility Library (browser.js) version 0.1.5";
exports.VERSIONINFO = "Browser Compatibility Library (browser.js) version 0.1.6";
exports.AUTHOR = "[email protected]";
exports.global = global;
exports.require = global.require;

0 comments on commit 9b50e5b

Please sign in to comment.