From 78e07240ae9f114c4876a7838e37d9cc95336620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Sun, 11 Oct 2020 15:15:38 +0200 Subject: [PATCH] fix: update dependencies and move documentation to gh-pages --- .github/workflows/nodejs.yml | 25 +- .github/workflows/release.yml | 4 +- .github/workflows/typedoc.yml | 22 + docs/assets/css/main.css | 2679 ------- docs/assets/images/icons.png | Bin 9615 -> 0 bytes docs/assets/images/icons@2x.png | Bin 28144 -> 0 bytes docs/assets/images/widgets.png | Bin 480 -> 0 bytes docs/assets/images/widgets@2x.png | Bin 855 -> 0 bytes docs/assets/js/main.js | 1 - docs/assets/js/search.json | 1 - docs/classes/abstractmatrix.html | 6184 ---------------- docs/classes/choleskydecomposition.html | 261 - docs/classes/eigenvaluedecomposition.html | 243 - docs/classes/ludecomposition.html | 296 - docs/classes/matrix.html | 6571 ----------------- docs/classes/matrixcolumnselectionview.html | 6389 ---------------- docs/classes/matrixcolumnview.html | 6389 ---------------- docs/classes/matrixflipcolumnview.html | 6386 ---------------- docs/classes/matrixfliprowview.html | 6386 ---------------- docs/classes/matrixrowselectionview.html | 6389 ---------------- docs/classes/matrixrowview.html | 6389 ---------------- docs/classes/matrixselectionview.html | 6392 ---------------- docs/classes/matrixsubview.html | 6398 ---------------- docs/classes/matrixtransposeview.html | 6386 ---------------- docs/classes/nipals.html | 322 - docs/classes/qrdecomposition.html | 282 - docs/classes/singularvaluedecomposition.html | 406 - docs/classes/wrappermatrix1d.html | 6389 ---------------- docs/classes/wrappermatrix2d.html | 6386 ---------------- docs/globals.html | 665 -- docs/index.html | 447 -- docs/interfaces/icenterbyoptions.html | 154 - docs/interfaces/icenteroptions.html | 154 - docs/interfaces/icorrelationoptions.html | 182 - docs/interfaces/icovarianceoptions.html | 161 - docs/interfaces/ievdoptions.html | 161 - .../ilineardependenciesoptions.html | 188 - docs/interfaces/inipalsoptions.html | 207 - docs/interfaces/irandomintoptions.html | 227 - docs/interfaces/irandomoptions.html | 179 - docs/interfaces/irepeatoptions.html | 188 - docs/interfaces/iscalebyoptions.html | 154 - docs/interfaces/iscaleoptions.html | 202 - docs/interfaces/isvdoptions.html | 203 - docs/interfaces/itostringoptions.html | 212 - docs/interfaces/ivariancebyoptions.html | 168 - docs/interfaces/ivarianceoptions.html | 168 - docs/interfaces/iwrap1doptions.html | 161 - package.json | 23 +- src/matrix.js | 2 +- 50 files changed, 48 insertions(+), 91734 deletions(-) create mode 100644 .github/workflows/typedoc.yml delete mode 100644 docs/assets/css/main.css delete mode 100644 docs/assets/images/icons.png delete mode 100644 docs/assets/images/icons@2x.png delete mode 100644 docs/assets/images/widgets.png delete mode 100644 docs/assets/images/widgets@2x.png delete mode 100644 docs/assets/js/main.js delete mode 100644 docs/assets/js/search.json delete mode 100644 docs/classes/abstractmatrix.html delete mode 100644 docs/classes/choleskydecomposition.html delete mode 100644 docs/classes/eigenvaluedecomposition.html delete mode 100644 docs/classes/ludecomposition.html delete mode 100644 docs/classes/matrix.html delete mode 100644 docs/classes/matrixcolumnselectionview.html delete mode 100644 docs/classes/matrixcolumnview.html delete mode 100644 docs/classes/matrixflipcolumnview.html delete mode 100644 docs/classes/matrixfliprowview.html delete mode 100644 docs/classes/matrixrowselectionview.html delete mode 100644 docs/classes/matrixrowview.html delete mode 100644 docs/classes/matrixselectionview.html delete mode 100644 docs/classes/matrixsubview.html delete mode 100644 docs/classes/matrixtransposeview.html delete mode 100644 docs/classes/nipals.html delete mode 100644 docs/classes/qrdecomposition.html delete mode 100644 docs/classes/singularvaluedecomposition.html delete mode 100644 docs/classes/wrappermatrix1d.html delete mode 100644 docs/classes/wrappermatrix2d.html delete mode 100644 docs/globals.html delete mode 100644 docs/index.html delete mode 100644 docs/interfaces/icenterbyoptions.html delete mode 100644 docs/interfaces/icenteroptions.html delete mode 100644 docs/interfaces/icorrelationoptions.html delete mode 100644 docs/interfaces/icovarianceoptions.html delete mode 100644 docs/interfaces/ievdoptions.html delete mode 100644 docs/interfaces/ilineardependenciesoptions.html delete mode 100644 docs/interfaces/inipalsoptions.html delete mode 100644 docs/interfaces/irandomintoptions.html delete mode 100644 docs/interfaces/irandomoptions.html delete mode 100644 docs/interfaces/irepeatoptions.html delete mode 100644 docs/interfaces/iscalebyoptions.html delete mode 100644 docs/interfaces/iscaleoptions.html delete mode 100644 docs/interfaces/isvdoptions.html delete mode 100644 docs/interfaces/itostringoptions.html delete mode 100644 docs/interfaces/ivariancebyoptions.html delete mode 100644 docs/interfaces/ivarianceoptions.html delete mode 100644 docs/interfaces/iwrap1doptions.html diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 37777948..b1e0b69b 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -10,14 +10,13 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Use Node.js 14 - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2-beta with: - node-version: 14 - - name: npm install and test - run: | - npm install - npm run eslint + node-version: 14.x + - name: Install dependencies + run: npm install + - name: Run ESLint + run: npm run eslint test: runs-on: ubuntu-latest strategy: @@ -26,10 +25,12 @@ jobs: steps: - uses: actions/checkout@v2 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 + uses: actions/setup-node@v2-beta with: node-version: ${{ matrix.node-version }} - - name: npm install and test - run: | - npm install - npm run test-coverage + - name: Install dependencies + run: npm install + - name: Run tests + run: npm run test-coverage + - name: Send coverage report to Codecov + uses: codecov/codecov-action@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd09a30a..0b3c68e5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,14 +12,14 @@ jobs: - uses: GoogleCloudPlatform/release-please-action@v2.5.3 id: release with: - token: ${{ secrets.GITHUB_TOKEN }} + token: ${{ secrets.BOT_TOKEN }} release-type: node package-name: ml-matrix bump-minor-pre-major: Yes - uses: actions/checkout@v2 # These if statements ensure that a publication only occurs when a new release is created if: ${{ steps.release.outputs.release_created }} - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v2-beta with: node-version: 14 registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/typedoc.yml b/.github/workflows/typedoc.yml new file mode 100644 index 00000000..1d7a33c3 --- /dev/null +++ b/.github/workflows/typedoc.yml @@ -0,0 +1,22 @@ +name: Deploy TypeDoc on GitHub pages + +on: + release: + types: [published] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Build documentation + uses: zakodium/typedoc-action@v1 + with: + entry: 'matrix.d.ts' + - name: Deploy to GitHub pages + uses: JamesIves/github-pages-deploy-action@releases/v3 + with: + GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }} + BRANCH: gh-pages + FOLDER: docs + CLEAN: true diff --git a/docs/assets/css/main.css b/docs/assets/css/main.css deleted file mode 100644 index 959edd73..00000000 --- a/docs/assets/css/main.css +++ /dev/null @@ -1,2679 +0,0 @@ -/*! normalize.css v1.1.3 | MIT License | git.io/normalize */ -/* ========================================================================== - * * HTML5 display definitions - * * ========================================================================== */ -/** - * * Correct `block` display not defined in IE 6/7/8/9 and Firefox 3. */ -article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary { - display: block; -} - -/** - * * Correct `inline-block` display not defined in IE 6/7/8/9 and Firefox 3. */ -audio, canvas, video { - display: inline-block; - *display: inline; - *zoom: 1; -} - -/** - * * Prevent modern browsers from displaying `audio` without controls. - * * Remove excess height in iOS 5 devices. */ -audio:not([controls]) { - display: none; - height: 0; -} - -/** - * * Address styling not present in IE 7/8/9, Firefox 3, and Safari 4. - * * Known issue: no IE 6 support. */ -[hidden] { - display: none; -} - -/* ========================================================================== - * * Base - * * ========================================================================== */ -/** - * * 1. Correct text resizing oddly in IE 6/7 when body `font-size` is set using - * * `em` units. - * * 2. Prevent iOS text size adjust after orientation change, without disabling - * * user zoom. */ -html { - font-size: 100%; - /* 1 */ - -ms-text-size-adjust: 100%; - /* 2 */ - -webkit-text-size-adjust: 100%; - /* 2 */ - font-family: sans-serif; -} - -/** - * * Address `font-family` inconsistency between `textarea` and other form - * * elements. */ -button, input, select, textarea { - font-family: sans-serif; -} - -/** - * * Address margins handled incorrectly in IE 6/7. */ -body { - margin: 0; -} - -/* ========================================================================== - * * Links - * * ========================================================================== */ -/** - * * Address `outline` inconsistency between Chrome and other browsers. */ -a:focus { - outline: thin dotted; -} -a:active, a:hover { - outline: 0; -} - -/** - * * Improve readability when focused and also mouse hovered in all browsers. */ -/* ========================================================================== - * * Typography - * * ========================================================================== */ -/** - * * Address font sizes and margins set differently in IE 6/7. - * * Address font sizes within `section` and `article` in Firefox 4+, Safari 5, - * * and Chrome. */ -h1 { - font-size: 2em; - margin: 0.67em 0; -} - -h2 { - font-size: 1.5em; - margin: 0.83em 0; -} - -h3 { - font-size: 1.17em; - margin: 1em 0; -} - -h4, .tsd-index-panel h3 { - font-size: 1em; - margin: 1.33em 0; -} - -h5 { - font-size: 0.83em; - margin: 1.67em 0; -} - -h6 { - font-size: 0.67em; - margin: 2.33em 0; -} - -/** - * * Address styling not present in IE 7/8/9, Safari 5, and Chrome. */ -abbr[title] { - border-bottom: 1px dotted; -} - -/** - * * Address style set to `bolder` in Firefox 3+, Safari 4/5, and Chrome. */ -b, strong { - font-weight: bold; -} - -blockquote { - margin: 1em 40px; -} - -/** - * * Address styling not present in Safari 5 and Chrome. */ -dfn { - font-style: italic; -} - -/** - * * Address differences between Firefox and other browsers. - * * Known issue: no IE 6/7 normalization. */ -hr { - box-sizing: content-box; - height: 0; -} - -/** - * * Address styling not present in IE 6/7/8/9. */ -mark { - background: #ff0; - color: #000; -} - -/** - * * Address margins set differently in IE 6/7. */ -p, pre { - margin: 1em 0; -} - -/** - * * Correct font family set oddly in IE 6, Safari 4/5, and Chrome. */ -code, kbd, pre, samp { - font-family: monospace, serif; - _font-family: "courier new", monospace; - font-size: 1em; -} - -/** - * * Improve readability of pre-formatted text in all browsers. */ -pre { - white-space: pre; - white-space: pre-wrap; - word-wrap: break-word; -} - -/** - * * Address CSS quotes not supported in IE 6/7. */ -q { - quotes: none; -} -q:before, q:after { - content: ""; - content: none; -} - -/** - * * Address `quotes` property not supported in Safari 4. */ -/** - * * Address inconsistent and variable font size in all browsers. */ -small { - font-size: 80%; -} - -/** - * * Prevent `sub` and `sup` affecting `line-height` in all browsers. */ -sub { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; -} - -sup { - font-size: 75%; - line-height: 0; - position: relative; - vertical-align: baseline; - top: -0.5em; -} - -sub { - bottom: -0.25em; -} - -/* ========================================================================== - * * Lists - * * ========================================================================== */ -/** - * * Address margins set differently in IE 6/7. */ -dl, menu, ol, ul { - margin: 1em 0; -} - -dd { - margin: 0 0 0 40px; -} - -/** - * * Address paddings set differently in IE 6/7. */ -menu, ol, ul { - padding: 0 0 0 40px; -} - -/** - * * Correct list images handled incorrectly in IE 7. */ -nav ul, nav ol { - list-style: none; - list-style-image: none; -} - -/* ========================================================================== - * * Embedded content - * * ========================================================================== */ -/** - * * 1. Remove border when inside `a` element in IE 6/7/8/9 and Firefox 3. - * * 2. Improve image quality when scaled in IE 7. */ -img { - border: 0; - /* 1 */ - -ms-interpolation-mode: bicubic; -} - -/* 2 */ -/** - * * Correct overflow displayed oddly in IE 9. */ -svg:not(:root) { - overflow: hidden; -} - -/* ========================================================================== - * * Figures - * * ========================================================================== */ -/** - * * Address margin not present in IE 6/7/8/9, Safari 5, and Opera 11. */ -figure, form { - margin: 0; -} - -/* ========================================================================== - * * Forms - * * ========================================================================== */ -/** - * * Correct margin displayed oddly in IE 6/7. */ -/** - * * Define consistent border, margin, and padding. */ -fieldset { - border: 1px solid #c0c0c0; - margin: 0 2px; - padding: 0.35em 0.625em 0.75em; -} - -/** - * * 1. Correct color not being inherited in IE 6/7/8/9. - * * 2. Correct text not wrapping in Firefox 3. - * * 3. Correct alignment displayed oddly in IE 6/7. */ -legend { - border: 0; - /* 1 */ - padding: 0; - white-space: normal; - /* 2 */ - *margin-left: -7px; -} - -/* 3 */ -/** - * * 1. Correct font size not being inherited in all browsers. - * * 2. Address margins set differently in IE 6/7, Firefox 3+, Safari 5, - * * and Chrome. - * * 3. Improve appearance and consistency in all browsers. */ -button, input, select, textarea { - font-size: 100%; - /* 1 */ - margin: 0; - /* 2 */ - vertical-align: baseline; - /* 3 */ - *vertical-align: middle; -} - -/* 3 */ -/** - * * Address Firefox 3+ setting `line-height` on `input` using `!important` in - * * the UA stylesheet. */ -button, input { - line-height: normal; -} - -/** - * * Address inconsistent `text-transform` inheritance for `button` and `select`. - * * All other form control elements do not inherit `text-transform` values. - * * Correct `button` style inheritance in Chrome, Safari 5+, and IE 6+. - * * Correct `select` style inheritance in Firefox 4+ and Opera. */ -button, select { - text-transform: none; -} - -/** - * * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio` - * * and `video` controls. - * * 2. Correct inability to style clickable `input` types in iOS. - * * 3. Improve usability and consistency of cursor style between image-type - * * `input` and others. - * * 4. Remove inner spacing in IE 7 without affecting normal text inputs. - * * Known issue: inner spacing remains in IE 6. */ -button, html input[type=button] { - -webkit-appearance: button; - /* 2 */ - cursor: pointer; - /* 3 */ - *overflow: visible; -} - -/* 4 */ -input[type=reset], input[type=submit] { - -webkit-appearance: button; - /* 2 */ - cursor: pointer; - /* 3 */ - *overflow: visible; -} - -/* 4 */ -/** - * * Re-set default cursor for disabled elements. */ -button[disabled], html input[disabled] { - cursor: default; -} - -/** - * * 1. Address box sizing set to content-box in IE 8/9. - * * 2. Remove excess padding in IE 8/9. - * * 3. Remove excess padding in IE 7. - * * Known issue: excess padding remains in IE 6. */ -input { - /* 3 */ -} -input[type=checkbox], input[type=radio] { - box-sizing: border-box; - /* 1 */ - padding: 0; - /* 2 */ - *height: 13px; - /* 3 */ - *width: 13px; -} -input[type=search] { - -webkit-appearance: textfield; - /* 1 */ - /* 2 */ - box-sizing: content-box; -} -input[type=search]::-webkit-search-cancel-button, input[type=search]::-webkit-search-decoration { - -webkit-appearance: none; -} - -/** - * * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome. - * * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome - * * (include `-moz` to future-proof). */ -/** - * * Remove inner padding and search cancel button in Safari 5 and Chrome - * * on OS X. */ -/** - * * Remove inner padding and border in Firefox 3+. */ -button::-moz-focus-inner, input::-moz-focus-inner { - border: 0; - padding: 0; -} - -/** - * * 1. Remove default vertical scrollbar in IE 6/7/8/9. - * * 2. Improve readability and alignment in all browsers. */ -textarea { - overflow: auto; - /* 1 */ - vertical-align: top; -} - -/* 2 */ -/* ========================================================================== - * * Tables - * * ========================================================================== */ -/** - * * Remove most spacing between table cells. */ -table { - border-collapse: collapse; - border-spacing: 0; -} - -/* * - * *Visual Studio-like style based on original C# coloring by Jason Diamond */ -.hljs { - display: inline-block; - padding: 0.5em; - background: white; - color: black; -} - -.hljs-comment, .hljs-annotation, .hljs-template_comment, .diff .hljs-header, .hljs-chunk, .apache .hljs-cbracket { - color: #008000; -} - -.hljs-keyword, .hljs-id, .hljs-built_in, .css .smalltalk .hljs-class, .hljs-winutils, .bash .hljs-variable, .tex .hljs-command, .hljs-request, .hljs-status, .nginx .hljs-title { - color: #00f; -} - -.xml .hljs-tag { - color: #00f; -} -.xml .hljs-tag .hljs-value { - color: #00f; -} - -.hljs-string, .hljs-title, .hljs-parent, .hljs-tag .hljs-value, .hljs-rules .hljs-value { - color: #a31515; -} - -.ruby .hljs-symbol { - color: #a31515; -} -.ruby .hljs-symbol .hljs-string { - color: #a31515; -} - -.hljs-template_tag, .django .hljs-variable, .hljs-addition, .hljs-flow, .hljs-stream, .apache .hljs-tag, .hljs-date, .tex .hljs-formula, .coffeescript .hljs-attribute { - color: #a31515; -} - -.ruby .hljs-string, .hljs-decorator, .hljs-filter .hljs-argument, .hljs-localvars, .hljs-array, .hljs-attr_selector, .hljs-pseudo, .hljs-pi, .hljs-doctype, .hljs-deletion, .hljs-envvar, .hljs-shebang, .hljs-preprocessor, .hljs-pragma, .userType, .apache .hljs-sqbracket, .nginx .hljs-built_in, .tex .hljs-special, .hljs-prompt { - color: #2b91af; -} - -.hljs-phpdoc, .hljs-javadoc, .hljs-xmlDocTag { - color: #808080; -} - -.vhdl .hljs-typename { - font-weight: bold; -} -.vhdl .hljs-string { - color: #666666; -} -.vhdl .hljs-literal { - color: #a31515; -} -.vhdl .hljs-attribute { - color: #00b0e8; -} - -.xml .hljs-attribute { - color: #f00; -} - -ul.tsd-descriptions > li > :first-child, .tsd-panel > :first-child, .col > :first-child, .col-11 > :first-child, .col-10 > :first-child, .col-9 > :first-child, .col-8 > :first-child, .col-7 > :first-child, .col-6 > :first-child, .col-5 > :first-child, .col-4 > :first-child, .col-3 > :first-child, .col-2 > :first-child, .col-1 > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child, -.tsd-panel > :first-child > :first-child, -.col > :first-child > :first-child, -.col-11 > :first-child > :first-child, -.col-10 > :first-child > :first-child, -.col-9 > :first-child > :first-child, -.col-8 > :first-child > :first-child, -.col-7 > :first-child > :first-child, -.col-6 > :first-child > :first-child, -.col-5 > :first-child > :first-child, -.col-4 > :first-child > :first-child, -.col-3 > :first-child > :first-child, -.col-2 > :first-child > :first-child, -.col-1 > :first-child > :first-child, -ul.tsd-descriptions > li > :first-child > :first-child > :first-child, -.tsd-panel > :first-child > :first-child > :first-child, -.col > :first-child > :first-child > :first-child, -.col-11 > :first-child > :first-child > :first-child, -.col-10 > :first-child > :first-child > :first-child, -.col-9 > :first-child > :first-child > :first-child, -.col-8 > :first-child > :first-child > :first-child, -.col-7 > :first-child > :first-child > :first-child, -.col-6 > :first-child > :first-child > :first-child, -.col-5 > :first-child > :first-child > :first-child, -.col-4 > :first-child > :first-child > :first-child, -.col-3 > :first-child > :first-child > :first-child, -.col-2 > :first-child > :first-child > :first-child, -.col-1 > :first-child > :first-child > :first-child { - margin-top: 0; -} -ul.tsd-descriptions > li > :last-child, .tsd-panel > :last-child, .col > :last-child, .col-11 > :last-child, .col-10 > :last-child, .col-9 > :last-child, .col-8 > :last-child, .col-7 > :last-child, .col-6 > :last-child, .col-5 > :last-child, .col-4 > :last-child, .col-3 > :last-child, .col-2 > :last-child, .col-1 > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child, -.tsd-panel > :last-child > :last-child, -.col > :last-child > :last-child, -.col-11 > :last-child > :last-child, -.col-10 > :last-child > :last-child, -.col-9 > :last-child > :last-child, -.col-8 > :last-child > :last-child, -.col-7 > :last-child > :last-child, -.col-6 > :last-child > :last-child, -.col-5 > :last-child > :last-child, -.col-4 > :last-child > :last-child, -.col-3 > :last-child > :last-child, -.col-2 > :last-child > :last-child, -.col-1 > :last-child > :last-child, -ul.tsd-descriptions > li > :last-child > :last-child > :last-child, -.tsd-panel > :last-child > :last-child > :last-child, -.col > :last-child > :last-child > :last-child, -.col-11 > :last-child > :last-child > :last-child, -.col-10 > :last-child > :last-child > :last-child, -.col-9 > :last-child > :last-child > :last-child, -.col-8 > :last-child > :last-child > :last-child, -.col-7 > :last-child > :last-child > :last-child, -.col-6 > :last-child > :last-child > :last-child, -.col-5 > :last-child > :last-child > :last-child, -.col-4 > :last-child > :last-child > :last-child, -.col-3 > :last-child > :last-child > :last-child, -.col-2 > :last-child > :last-child > :last-child, -.col-1 > :last-child > :last-child > :last-child { - margin-bottom: 0; -} - -.container { - max-width: 1200px; - margin: 0 auto; - padding: 0 40px; -} -@media (max-width: 640px) { - .container { - padding: 0 20px; - } -} - -.container-main { - padding-bottom: 200px; -} - -.row { - display: -ms-flexbox; - display: flex; - position: relative; - margin: 0 -10px; -} -.row:after { - visibility: hidden; - display: block; - content: ""; - clear: both; - height: 0; -} - -.col, .col-11, .col-10, .col-9, .col-8, .col-7, .col-6, .col-5, .col-4, .col-3, .col-2, .col-1 { - box-sizing: border-box; - float: left; - padding: 0 10px; -} - -.col-1 { - width: 8.3333333333%; -} - -.offset-1 { - margin-left: 8.3333333333%; -} - -.col-2 { - width: 16.6666666667%; -} - -.offset-2 { - margin-left: 16.6666666667%; -} - -.col-3 { - width: 25%; -} - -.offset-3 { - margin-left: 25%; -} - -.col-4 { - width: 33.3333333333%; -} - -.offset-4 { - margin-left: 33.3333333333%; -} - -.col-5 { - width: 41.6666666667%; -} - -.offset-5 { - margin-left: 41.6666666667%; -} - -.col-6 { - width: 50%; -} - -.offset-6 { - margin-left: 50%; -} - -.col-7 { - width: 58.3333333333%; -} - -.offset-7 { - margin-left: 58.3333333333%; -} - -.col-8 { - width: 66.6666666667%; -} - -.offset-8 { - margin-left: 66.6666666667%; -} - -.col-9 { - width: 75%; -} - -.offset-9 { - margin-left: 75%; -} - -.col-10 { - width: 83.3333333333%; -} - -.offset-10 { - margin-left: 83.3333333333%; -} - -.col-11 { - width: 91.6666666667%; -} - -.offset-11 { - margin-left: 91.6666666667%; -} - -.tsd-kind-icon { - display: block; - position: relative; - padding-left: 20px; - text-indent: -20px; -} -.tsd-kind-icon:before { - content: ""; - display: inline-block; - vertical-align: middle; - width: 17px; - height: 17px; - margin: 0 3px 2px 0; - background-image: url(../images/icons.png); -} -@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { - .tsd-kind-icon:before { - background-image: url(../images/icons@2x.png); - background-size: 238px 204px; - } -} - -.tsd-signature.tsd-kind-icon:before { - background-position: 0 -153px; -} - -.tsd-kind-object-literal > .tsd-kind-icon:before { - background-position: 0px -17px; -} -.tsd-kind-object-literal.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -17px; -} -.tsd-kind-object-literal.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -17px; -} - -.tsd-kind-class > .tsd-kind-icon:before { - background-position: 0px -34px; -} -.tsd-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -34px; -} -.tsd-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -34px; -} - -.tsd-kind-class.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -51px; -} -.tsd-kind-class.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -51px; -} -.tsd-kind-class.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -51px; -} - -.tsd-kind-interface > .tsd-kind-icon:before { - background-position: 0px -68px; -} -.tsd-kind-interface.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -68px; -} -.tsd-kind-interface.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -68px; -} - -.tsd-kind-interface.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -85px; -} -.tsd-kind-interface.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -85px; -} -.tsd-kind-interface.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -85px; -} - -.tsd-kind-namespace > .tsd-kind-icon:before { - background-position: 0px -102px; -} -.tsd-kind-namespace.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -102px; -} -.tsd-kind-namespace.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -102px; -} - -.tsd-kind-module > .tsd-kind-icon:before { - background-position: 0px -102px; -} -.tsd-kind-module.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -102px; -} -.tsd-kind-module.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -102px; -} - -.tsd-kind-enum > .tsd-kind-icon:before { - background-position: 0px -119px; -} -.tsd-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -119px; -} -.tsd-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -119px; -} - -.tsd-kind-enum-member > .tsd-kind-icon:before { - background-position: 0px -136px; -} -.tsd-kind-enum-member.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -136px; -} -.tsd-kind-enum-member.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -136px; -} - -.tsd-kind-signature > .tsd-kind-icon:before { - background-position: 0px -153px; -} -.tsd-kind-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -153px; -} -.tsd-kind-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -153px; -} - -.tsd-kind-type-alias > .tsd-kind-icon:before { - background-position: 0px -170px; -} -.tsd-kind-type-alias.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -170px; -} -.tsd-kind-type-alias.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -170px; -} - -.tsd-kind-type-alias.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: 0px -187px; -} -.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -17px -187px; -} -.tsd-kind-type-alias.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -34px -187px; -} - -.tsd-kind-variable > .tsd-kind-icon:before { - background-position: -136px -0px; -} -.tsd-kind-variable.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -0px; -} -.tsd-kind-variable.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -0px; -} -.tsd-kind-variable.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -0px; -} -.tsd-kind-variable.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-variable.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -0px; -} -.tsd-kind-variable.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -0px; -} - -.tsd-kind-property > .tsd-kind-icon:before { - background-position: -136px -0px; -} -.tsd-kind-property.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -0px; -} -.tsd-kind-property.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -0px; -} -.tsd-kind-property.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -0px; -} -.tsd-kind-property.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -0px; -} -.tsd-kind-property.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -0px; -} -.tsd-kind-property.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -0px; -} - -.tsd-kind-get-signature > .tsd-kind-icon:before { - background-position: -136px -17px; -} -.tsd-kind-get-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -17px; -} -.tsd-kind-get-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -17px; -} -.tsd-kind-get-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -17px; -} - -.tsd-kind-set-signature > .tsd-kind-icon:before { - background-position: -136px -34px; -} -.tsd-kind-set-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -34px; -} -.tsd-kind-set-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -34px; -} -.tsd-kind-set-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -34px; -} - -.tsd-kind-accessor > .tsd-kind-icon:before { - background-position: -136px -51px; -} -.tsd-kind-accessor.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -51px; -} -.tsd-kind-accessor.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -51px; -} -.tsd-kind-accessor.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -51px; -} - -.tsd-kind-function > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-function.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-method > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-call-signature > .tsd-kind-icon:before { - background-position: -136px -68px; -} -.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -68px; -} -.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -68px; -} -.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -68px; -} - -.tsd-kind-function.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: -136px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -85px; -} -.tsd-kind-function.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -85px; -} - -.tsd-kind-method.tsd-has-type-parameter > .tsd-kind-icon:before { - background-position: -136px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -85px; -} -.tsd-kind-method.tsd-has-type-parameter.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -85px; -} - -.tsd-kind-constructor > .tsd-kind-icon:before { - background-position: -136px -102px; -} -.tsd-kind-constructor.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -102px; -} -.tsd-kind-constructor.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -102px; -} -.tsd-kind-constructor.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -102px; -} - -.tsd-kind-constructor-signature > .tsd-kind-icon:before { - background-position: -136px -102px; -} -.tsd-kind-constructor-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -102px; -} -.tsd-kind-constructor-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -102px; -} -.tsd-kind-constructor-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -102px; -} - -.tsd-kind-index-signature > .tsd-kind-icon:before { - background-position: -136px -119px; -} -.tsd-kind-index-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -119px; -} -.tsd-kind-index-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -119px; -} -.tsd-kind-index-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -119px; -} - -.tsd-kind-event > .tsd-kind-icon:before { - background-position: -136px -136px; -} -.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -136px; -} -.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -136px; -} -.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -136px; -} -.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -136px; -} -.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -136px; -} -.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -136px; -} - -.tsd-is-static > .tsd-kind-icon:before { - background-position: -136px -153px; -} -.tsd-is-static.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -153px; -} -.tsd-is-static.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -153px; -} -.tsd-is-static.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -153px; -} -.tsd-is-static.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -153px; -} -.tsd-is-static.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -153px; -} -.tsd-is-static.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -153px; -} -.tsd-is-static.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -153px; -} - -.tsd-is-static.tsd-kind-function > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-function.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-method > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-method.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-call-signature > .tsd-kind-icon:before { - background-position: -136px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -170px; -} -.tsd-is-static.tsd-kind-call-signature.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -170px; -} - -.tsd-is-static.tsd-kind-event > .tsd-kind-icon:before { - background-position: -136px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-is-protected > .tsd-kind-icon:before { - background-position: -153px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class > .tsd-kind-icon:before { - background-position: -51px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -68px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected > .tsd-kind-icon:before { - background-position: -85px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-protected.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -102px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-class.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum > .tsd-kind-icon:before { - background-position: -170px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-protected > .tsd-kind-icon:before { - background-position: -187px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-enum.tsd-is-private > .tsd-kind-icon:before { - background-position: -119px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface > .tsd-kind-icon:before { - background-position: -204px -187px; -} -.tsd-is-static.tsd-kind-event.tsd-parent-kind-interface.tsd-is-inherited > .tsd-kind-icon:before { - background-position: -221px -187px; -} - -@keyframes fade-in { - from { - opacity: 0; - } - to { - opacity: 1; - } -} -@keyframes fade-out { - from { - opacity: 1; - visibility: visible; - } - to { - opacity: 0; - } -} -@keyframes fade-in-delayed { - 0% { - opacity: 0; - } - 33% { - opacity: 0; - } - 100% { - opacity: 1; - } -} -@keyframes fade-out-delayed { - 0% { - opacity: 1; - visibility: visible; - } - 66% { - opacity: 0; - } - 100% { - opacity: 0; - } -} -@keyframes shift-to-left { - from { - transform: translate(0, 0); - } - to { - transform: translate(-25%, 0); - } -} -@keyframes unshift-to-left { - from { - transform: translate(-25%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-in-from-right { - from { - transform: translate(100%, 0); - } - to { - transform: translate(0, 0); - } -} -@keyframes pop-out-to-right { - from { - transform: translate(0, 0); - visibility: visible; - } - to { - transform: translate(100%, 0); - } -} -body { - background: #fdfdfd; - font-family: "Segoe UI", sans-serif; - font-size: 16px; - color: #222; -} - -a { - color: #4da6ff; - text-decoration: none; -} -a:hover { - text-decoration: underline; -} - -code, pre { - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - padding: 0.2em; - margin: 0; - font-size: 14px; - background-color: rgba(0, 0, 0, 0.04); -} - -pre { - padding: 10px; -} -pre code { - padding: 0; - font-size: 100%; - background-color: transparent; -} - -.tsd-typography { - line-height: 1.333em; -} -.tsd-typography ul { - list-style: square; - padding: 0 0 0 20px; - margin: 0; -} -.tsd-typography h4, .tsd-typography .tsd-index-panel h3, .tsd-index-panel .tsd-typography h3, .tsd-typography h5, .tsd-typography h6 { - font-size: 1em; - margin: 0; -} -.tsd-typography h5, .tsd-typography h6 { - font-weight: normal; -} -.tsd-typography p, .tsd-typography ul, .tsd-typography ol { - margin: 1em 0; -} - -@media (min-width: 901px) and (max-width: 1024px) { - html.default .col-content { - width: 72%; - } - html.default .col-menu { - width: 28%; - } - html.default .tsd-navigation { - padding-left: 10px; - } -} -@media (max-width: 900px) { - html.default .col-content { - float: none; - width: 100%; - } - html.default .col-menu { - position: fixed !important; - overflow: auto; - -webkit-overflow-scrolling: touch; - z-index: 1024; - top: 0 !important; - bottom: 0 !important; - left: auto !important; - right: 0 !important; - width: 100%; - padding: 20px 20px 0 0; - max-width: 450px; - visibility: hidden; - background-color: #fff; - transform: translate(100%, 0); - } - html.default .col-menu > *:last-child { - padding-bottom: 20px; - } - html.default .overlay { - content: ""; - display: block; - position: fixed; - z-index: 1023; - top: 0; - left: 0; - right: 0; - bottom: 0; - background-color: rgba(0, 0, 0, 0.75); - visibility: hidden; - } - html.default.to-has-menu .overlay { - animation: fade-in 0.4s; - } - html.default.to-has-menu header, -html.default.to-has-menu footer, -html.default.to-has-menu .col-content { - animation: shift-to-left 0.4s; - } - html.default.to-has-menu .col-menu { - animation: pop-in-from-right 0.4s; - } - html.default.from-has-menu .overlay { - animation: fade-out 0.4s; - } - html.default.from-has-menu header, -html.default.from-has-menu footer, -html.default.from-has-menu .col-content { - animation: unshift-to-left 0.4s; - } - html.default.from-has-menu .col-menu { - animation: pop-out-to-right 0.4s; - } - html.default.has-menu body { - overflow: hidden; - } - html.default.has-menu .overlay { - visibility: visible; - } - html.default.has-menu header, -html.default.has-menu footer, -html.default.has-menu .col-content { - transform: translate(-25%, 0); - } - html.default.has-menu .col-menu { - visibility: visible; - transform: translate(0, 0); - } -} - -.tsd-page-title { - padding: 70px 0 20px 0; - margin: 0 0 40px 0; - background: #fff; - box-shadow: 0 0 5px rgba(0, 0, 0, 0.35); -} -.tsd-page-title h1 { - margin: 0; -} - -.tsd-breadcrumb { - margin: 0; - padding: 0; - color: #808080; -} -.tsd-breadcrumb a { - color: #808080; - text-decoration: none; -} -.tsd-breadcrumb a:hover { - text-decoration: underline; -} -.tsd-breadcrumb li { - display: inline; -} -.tsd-breadcrumb li:after { - content: " / "; -} - -html.minimal .container { - margin: 0; -} -html.minimal .container-main { - padding-top: 50px; - padding-bottom: 0; -} -html.minimal .content-wrap { - padding-left: 300px; -} -html.minimal .tsd-navigation { - position: fixed !important; - overflow: auto; - -webkit-overflow-scrolling: touch; - box-sizing: border-box; - z-index: 1; - left: 0; - top: 40px; - bottom: 0; - width: 300px; - padding: 20px; - margin: 0; -} -html.minimal .tsd-member .tsd-member { - margin-left: 0; -} -html.minimal .tsd-page-toolbar { - position: fixed; - z-index: 2; -} -html.minimal #tsd-filter .tsd-filter-group { - right: 0; - transform: none; -} -html.minimal footer { - background-color: transparent; -} -html.minimal footer .container { - padding: 0; -} -html.minimal .tsd-generator { - padding: 0; -} -@media (max-width: 900px) { - html.minimal .tsd-navigation { - display: none; - } - html.minimal .content-wrap { - padding-left: 0; - } -} - -dl.tsd-comment-tags { - overflow: hidden; -} -dl.tsd-comment-tags dt { - float: left; - padding: 1px 5px; - margin: 0 10px 0 0; - border-radius: 4px; - border: 1px solid #808080; - color: #808080; - font-size: 0.8em; - font-weight: normal; -} -dl.tsd-comment-tags dd { - margin: 0 0 10px 0; -} -dl.tsd-comment-tags dd:before, dl.tsd-comment-tags dd:after { - display: table; - content: " "; -} -dl.tsd-comment-tags dd pre, dl.tsd-comment-tags dd:after { - clear: both; -} -dl.tsd-comment-tags p { - margin: 0; -} - -.tsd-panel.tsd-comment .lead { - font-size: 1.1em; - line-height: 1.333em; - margin-bottom: 2em; -} -.tsd-panel.tsd-comment .lead:last-child { - margin-bottom: 0; -} - -.toggle-protected .tsd-is-private { - display: none; -} - -.toggle-public .tsd-is-private, -.toggle-public .tsd-is-protected, -.toggle-public .tsd-is-private-protected { - display: none; -} - -.toggle-inherited .tsd-is-inherited { - display: none; -} - -.toggle-only-exported .tsd-is-not-exported { - display: none; -} - -.toggle-externals .tsd-is-external { - display: none; -} - -#tsd-filter { - position: relative; - display: inline-block; - height: 40px; - vertical-align: bottom; -} -.no-filter #tsd-filter { - display: none; -} -#tsd-filter .tsd-filter-group { - display: inline-block; - height: 40px; - vertical-align: bottom; - white-space: nowrap; -} -#tsd-filter input { - display: none; -} -@media (max-width: 900px) { - #tsd-filter .tsd-filter-group { - display: block; - position: absolute; - top: 40px; - right: 20px; - height: auto; - background-color: #fff; - visibility: hidden; - transform: translate(50%, 0); - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); - } - .has-options #tsd-filter .tsd-filter-group { - visibility: visible; - } - .to-has-options #tsd-filter .tsd-filter-group { - animation: fade-in 0.2s; - } - .from-has-options #tsd-filter .tsd-filter-group { - animation: fade-out 0.2s; - } - #tsd-filter label, -#tsd-filter .tsd-select { - display: block; - padding-right: 20px; - } -} - -footer { - border-top: 1px solid #eee; - background-color: #fff; -} -footer.with-border-bottom { - border-bottom: 1px solid #eee; -} -footer .tsd-legend-group { - font-size: 0; -} -footer .tsd-legend { - display: inline-block; - width: 25%; - padding: 0; - font-size: 16px; - list-style: none; - line-height: 1.333em; - vertical-align: top; -} -@media (max-width: 900px) { - footer .tsd-legend { - width: 50%; - } -} - -.tsd-hierarchy { - list-style: square; - padding: 0 0 0 20px; - margin: 0; -} -.tsd-hierarchy .target { - font-weight: bold; -} - -.tsd-index-panel .tsd-index-content { - margin-bottom: -30px !important; -} -.tsd-index-panel .tsd-index-section { - margin-bottom: 30px !important; -} -.tsd-index-panel h3 { - margin: 0 -20px 10px -20px; - padding: 0 20px 10px 20px; - border-bottom: 1px solid #eee; -} -.tsd-index-panel ul.tsd-index-list { - -moz-column-count: 3; - -ms-column-count: 3; - -o-column-count: 3; - column-count: 3; - -moz-column-gap: 20px; - -ms-column-gap: 20px; - -o-column-gap: 20px; - column-gap: 20px; - padding: 0; - list-style: none; - line-height: 1.333em; -} -@media (max-width: 900px) { - .tsd-index-panel ul.tsd-index-list { - -moz-column-count: 1; - -ms-column-count: 1; - -o-column-count: 1; - column-count: 1; - } -} -@media (min-width: 901px) and (max-width: 1024px) { - .tsd-index-panel ul.tsd-index-list { - -moz-column-count: 2; - -ms-column-count: 2; - -o-column-count: 2; - column-count: 2; - } -} -.tsd-index-panel ul.tsd-index-list li { - -webkit-page-break-inside: avoid; - -moz-page-break-inside: avoid; - -ms-page-break-inside: avoid; - -o-page-break-inside: avoid; - page-break-inside: avoid; -} -.tsd-index-panel a, -.tsd-index-panel .tsd-parent-kind-module a { - color: #9600ff; -} -.tsd-index-panel .tsd-parent-kind-interface a { - color: #7da01f; -} -.tsd-index-panel .tsd-parent-kind-enum a { - color: #cc9900; -} -.tsd-index-panel .tsd-parent-kind-class a { - color: #4da6ff; -} -.tsd-index-panel .tsd-kind-module a { - color: #9600ff; -} -.tsd-index-panel .tsd-kind-interface a { - color: #7da01f; -} -.tsd-index-panel .tsd-kind-enum a { - color: #cc9900; -} -.tsd-index-panel .tsd-kind-class a { - color: #4da6ff; -} -.tsd-index-panel .tsd-is-private a { - color: #808080; -} - -.tsd-flag { - display: inline-block; - padding: 1px 5px; - border-radius: 4px; - color: #fff; - background-color: #808080; - text-indent: 0; - font-size: 14px; - font-weight: normal; -} - -.tsd-anchor { - position: absolute; - top: -100px; -} - -.tsd-member { - position: relative; -} -.tsd-member .tsd-anchor + h3 { - margin-top: 0; - margin-bottom: 0; - border-bottom: none; -} - -.tsd-navigation { - margin: 0 0 0 40px; -} -.tsd-navigation a { - display: block; - padding-top: 2px; - padding-bottom: 2px; - border-left: 2px solid transparent; - color: #222; - text-decoration: none; - transition: border-left-color 0.1s; -} -.tsd-navigation a:hover { - text-decoration: underline; -} -.tsd-navigation ul { - margin: 0; - padding: 0; - list-style: none; -} -.tsd-navigation li { - padding: 0; -} - -.tsd-navigation.primary { - padding-bottom: 40px; -} -.tsd-navigation.primary a { - display: block; - padding-top: 6px; - padding-bottom: 6px; -} -.tsd-navigation.primary ul li a { - padding-left: 5px; -} -.tsd-navigation.primary ul li li a { - padding-left: 25px; -} -.tsd-navigation.primary ul li li li a { - padding-left: 45px; -} -.tsd-navigation.primary ul li li li li a { - padding-left: 65px; -} -.tsd-navigation.primary ul li li li li li a { - padding-left: 85px; -} -.tsd-navigation.primary ul li li li li li li a { - padding-left: 105px; -} -.tsd-navigation.primary > ul { - border-bottom: 1px solid #eee; -} -.tsd-navigation.primary li { - border-top: 1px solid #eee; -} -.tsd-navigation.primary li.current > a { - font-weight: bold; -} -.tsd-navigation.primary li.label span { - display: block; - padding: 20px 0 6px 5px; - color: #808080; -} -.tsd-navigation.primary li.globals + li > span, .tsd-navigation.primary li.globals + li > a { - padding-top: 20px; -} - -.tsd-navigation.secondary { - max-height: calc(100vh - 1rem - 40px); - overflow: auto; - position: -webkit-sticky; - position: sticky; - top: calc(.5rem + 40px); - transition: 0.3s; -} -.tsd-navigation.secondary.tsd-navigation--toolbar-hide { - max-height: calc(100vh - 1rem); - top: 0.5rem; -} -.tsd-navigation.secondary ul { - transition: opacity 0.2s; -} -.tsd-navigation.secondary ul li a { - padding-left: 25px; -} -.tsd-navigation.secondary ul li li a { - padding-left: 45px; -} -.tsd-navigation.secondary ul li li li a { - padding-left: 65px; -} -.tsd-navigation.secondary ul li li li li a { - padding-left: 85px; -} -.tsd-navigation.secondary ul li li li li li a { - padding-left: 105px; -} -.tsd-navigation.secondary ul li li li li li li a { - padding-left: 125px; -} -.tsd-navigation.secondary ul.current a { - border-left-color: #eee; -} -.tsd-navigation.secondary li.focus > a, -.tsd-navigation.secondary ul.current li.focus > a { - border-left-color: #000; -} -.tsd-navigation.secondary li.current { - margin-top: 20px; - margin-bottom: 20px; - border-left-color: #eee; -} -.tsd-navigation.secondary li.current > a { - font-weight: bold; -} - -@media (min-width: 901px) { - .menu-sticky-wrap { - position: static; - } -} - -.tsd-panel { - margin: 20px 0; - padding: 20px; - background-color: #fff; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); -} -.tsd-panel:empty { - display: none; -} -.tsd-panel > h1, .tsd-panel > h2, .tsd-panel > h3 { - margin: 1.5em -20px 10px -20px; - padding: 0 20px 10px 20px; - border-bottom: 1px solid #eee; -} -.tsd-panel > h1.tsd-before-signature, .tsd-panel > h2.tsd-before-signature, .tsd-panel > h3.tsd-before-signature { - margin-bottom: 0; - border-bottom: 0; -} -.tsd-panel table { - display: block; - width: 100%; - overflow: auto; - margin-top: 10px; - word-break: normal; - word-break: keep-all; -} -.tsd-panel table th { - font-weight: bold; -} -.tsd-panel table th, .tsd-panel table td { - padding: 6px 13px; - border: 1px solid #ddd; -} -.tsd-panel table tr { - background-color: #fff; - border-top: 1px solid #ccc; -} -.tsd-panel table tr:nth-child(2n) { - background-color: #f8f8f8; -} - -.tsd-panel-group { - margin: 60px 0; -} -.tsd-panel-group > h1, .tsd-panel-group > h2, .tsd-panel-group > h3 { - padding-left: 20px; - padding-right: 20px; -} - -#tsd-search { - transition: background-color 0.2s; -} -#tsd-search .title { - position: relative; - z-index: 2; -} -#tsd-search .field { - position: absolute; - left: 0; - top: 0; - right: 40px; - height: 40px; -} -#tsd-search .field input { - box-sizing: border-box; - position: relative; - top: -50px; - z-index: 1; - width: 100%; - padding: 0 10px; - opacity: 0; - outline: 0; - border: 0; - background: transparent; - color: #222; -} -#tsd-search .field label { - position: absolute; - overflow: hidden; - right: -40px; -} -#tsd-search .field input, -#tsd-search .title { - transition: opacity 0.2s; -} -#tsd-search .results { - position: absolute; - visibility: hidden; - top: 40px; - width: 100%; - margin: 0; - padding: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); -} -#tsd-search .results li { - padding: 0 10px; - background-color: #fdfdfd; -} -#tsd-search .results li:nth-child(even) { - background-color: #fff; -} -#tsd-search .results li.state { - display: none; -} -#tsd-search .results li.current, -#tsd-search .results li:hover { - background-color: #eee; -} -#tsd-search .results a { - display: block; -} -#tsd-search .results a:before { - top: 10px; -} -#tsd-search .results span.parent { - color: #808080; - font-weight: normal; -} -#tsd-search.has-focus { - background-color: #eee; -} -#tsd-search.has-focus .field input { - top: 0; - opacity: 1; -} -#tsd-search.has-focus .title { - z-index: 0; - opacity: 0; -} -#tsd-search.has-focus .results { - visibility: visible; -} -#tsd-search.loading .results li.state.loading { - display: block; -} -#tsd-search.failure .results li.state.failure { - display: block; -} - -.tsd-signature { - margin: 0 0 1em 0; - padding: 10px; - border: 1px solid #eee; - font-family: Menlo, Monaco, Consolas, "Courier New", monospace; - font-size: 14px; - overflow-x: auto; -} -.tsd-signature.tsd-kind-icon { - padding-left: 30px; -} -.tsd-signature.tsd-kind-icon:before { - top: 10px; - left: 10px; -} -.tsd-panel > .tsd-signature { - margin-left: -20px; - margin-right: -20px; - border-width: 1px 0; -} -.tsd-panel > .tsd-signature.tsd-kind-icon { - padding-left: 40px; -} -.tsd-panel > .tsd-signature.tsd-kind-icon:before { - left: 20px; -} - -.tsd-signature-symbol { - color: #808080; - font-weight: normal; -} - -.tsd-signature-type { - font-style: italic; - font-weight: normal; -} - -.tsd-signatures { - padding: 0; - margin: 0 0 1em 0; - border: 1px solid #eee; -} -.tsd-signatures .tsd-signature { - margin: 0; - border-width: 1px 0 0 0; - transition: background-color 0.1s; -} -.tsd-signatures .tsd-signature:first-child { - border-top-width: 0; -} -.tsd-signatures .tsd-signature.current { - background-color: #eee; -} -.tsd-signatures.active > .tsd-signature { - cursor: pointer; -} -.tsd-panel > .tsd-signatures { - margin-left: -20px; - margin-right: -20px; - border-width: 1px 0; -} -.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon { - padding-left: 40px; -} -.tsd-panel > .tsd-signatures .tsd-signature.tsd-kind-icon:before { - left: 20px; -} -.tsd-panel > a.anchor + .tsd-signatures { - border-top-width: 0; - margin-top: -20px; -} - -ul.tsd-descriptions { - position: relative; - overflow: hidden; - padding: 0; - list-style: none; -} -ul.tsd-descriptions.active > .tsd-description { - display: none; -} -ul.tsd-descriptions.active > .tsd-description.current { - display: block; -} -ul.tsd-descriptions.active > .tsd-description.fade-in { - animation: fade-in-delayed 0.3s; -} -ul.tsd-descriptions.active > .tsd-description.fade-out { - animation: fade-out-delayed 0.3s; - position: absolute; - display: block; - top: 0; - left: 0; - right: 0; - opacity: 0; - visibility: hidden; -} -ul.tsd-descriptions h4, ul.tsd-descriptions .tsd-index-panel h3, .tsd-index-panel ul.tsd-descriptions h3 { - font-size: 16px; - margin: 1em 0 0.5em 0; -} - -ul.tsd-parameters, -ul.tsd-type-parameters { - list-style: square; - margin: 0; - padding-left: 20px; -} -ul.tsd-parameters > li.tsd-parameter-signature, -ul.tsd-type-parameters > li.tsd-parameter-signature { - list-style: none; - margin-left: -20px; -} -ul.tsd-parameters h5, -ul.tsd-type-parameters h5 { - font-size: 16px; - margin: 1em 0 0.5em 0; -} -ul.tsd-parameters .tsd-comment, -ul.tsd-type-parameters .tsd-comment { - margin-top: -0.5em; -} - -.tsd-sources { - font-size: 14px; - color: #808080; - margin: 0 0 1em 0; -} -.tsd-sources a { - color: #808080; - text-decoration: underline; -} -.tsd-sources ul, .tsd-sources p { - margin: 0 !important; -} -.tsd-sources ul { - list-style: none; - padding: 0; -} - -.tsd-page-toolbar { - position: fixed; - z-index: 1; - top: 0; - left: 0; - width: 100%; - height: 40px; - color: #333; - background: #fff; - border-bottom: 1px solid #eee; - transition: transform 0.3s linear; -} -.tsd-page-toolbar a { - color: #333; - text-decoration: none; -} -.tsd-page-toolbar a.title { - font-weight: bold; -} -.tsd-page-toolbar a.title:hover { - text-decoration: underline; -} -.tsd-page-toolbar .table-wrap { - display: table; - width: 100%; - height: 40px; -} -.tsd-page-toolbar .table-cell { - display: table-cell; - position: relative; - white-space: nowrap; - line-height: 40px; -} -.tsd-page-toolbar .table-cell:first-child { - width: 100%; -} - -.tsd-page-toolbar--hide { - transform: translateY(-100%); -} - -.tsd-select .tsd-select-list li:before, .tsd-select .tsd-select-label:before, .tsd-widget:before { - content: ""; - display: inline-block; - width: 40px; - height: 40px; - margin: 0 -8px 0 0; - background-image: url(../images/widgets.png); - background-repeat: no-repeat; - text-indent: -1024px; - vertical-align: bottom; -} -@media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) { - .tsd-select .tsd-select-list li:before, .tsd-select .tsd-select-label:before, .tsd-widget:before { - background-image: url(../images/widgets@2x.png); - background-size: 320px 40px; - } -} - -.tsd-widget { - display: inline-block; - overflow: hidden; - opacity: 0.6; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; -} -.tsd-widget:hover { - opacity: 0.8; -} -.tsd-widget.active { - opacity: 1; - background-color: #eee; -} -.tsd-widget.no-caption { - width: 40px; -} -.tsd-widget.no-caption:before { - margin: 0; -} -.tsd-widget.search:before { - background-position: 0 0; -} -.tsd-widget.menu:before { - background-position: -40px 0; -} -.tsd-widget.options:before { - background-position: -80px 0; -} -.tsd-widget.options, .tsd-widget.menu { - display: none; -} -@media (max-width: 900px) { - .tsd-widget.options, .tsd-widget.menu { - display: inline-block; - } -} -input[type=checkbox] + .tsd-widget:before { - background-position: -120px 0; -} -input[type=checkbox]:checked + .tsd-widget:before { - background-position: -160px 0; -} - -.tsd-select { - position: relative; - display: inline-block; - height: 40px; - transition: opacity 0.1s, background-color 0.2s; - vertical-align: bottom; - cursor: pointer; -} -.tsd-select .tsd-select-label { - opacity: 0.6; - transition: opacity 0.2s; -} -.tsd-select .tsd-select-label:before { - background-position: -240px 0; -} -.tsd-select.active .tsd-select-label { - opacity: 0.8; -} -.tsd-select.active .tsd-select-list { - visibility: visible; - opacity: 1; - transition-delay: 0s; -} -.tsd-select .tsd-select-list { - position: absolute; - visibility: hidden; - top: 40px; - left: 0; - margin: 0; - padding: 0; - opacity: 0; - list-style: none; - box-shadow: 0 0 4px rgba(0, 0, 0, 0.25); - transition: visibility 0s 0.2s, opacity 0.2s; -} -.tsd-select .tsd-select-list li { - padding: 0 20px 0 0; - background-color: #fdfdfd; -} -.tsd-select .tsd-select-list li:before { - background-position: 40px 0; -} -.tsd-select .tsd-select-list li:nth-child(even) { - background-color: #fff; -} -.tsd-select .tsd-select-list li:hover { - background-color: #eee; -} -.tsd-select .tsd-select-list li.selected:before { - background-position: -200px 0; -} -@media (max-width: 900px) { - .tsd-select .tsd-select-list { - top: 0; - left: auto; - right: 100%; - margin-right: -5px; - } - .tsd-select .tsd-select-label:before { - background-position: -280px 0; - } -} - -img { - max-width: 100%; -} \ No newline at end of file diff --git a/docs/assets/images/icons.png b/docs/assets/images/icons.png deleted file mode 100644 index 3836d5fe46e48bbe186116855aae879c23935327..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 9615 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 NZmR35l_G4O{0}dcmS_L~ diff --git a/docs/assets/images/icons@2x.png b/docs/assets/images/icons@2x.png deleted file mode 100644 index 5a209e2f6d7f915cc9cb6fe7a4264c8be4db87b0..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 28144 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 U&wLp6h6BX&boFyt=akR{0G%$)mH+?% diff --git a/docs/assets/images/widgets@2x.png b/docs/assets/images/widgets@2x.png deleted file mode 100644 index 4bbbd57272f3b28f47527d4951ad10f950b8ad43..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 855 zcmeAS@N?(olHy`uVBq!ia0y~yU}^xe12~w0Jcmn z@(X6T|9^jgLcx21{)7exgY)a>N6m2F0<`Rqr;B4q1>>88jUdw-7W`c)zLE*mq8W2H z-<&Jl_Hco5BuC5n@AbF5GD82~-e8-v=#zCyUX0F-o}8pPfAv`!GN$ff+TL<~@kgt} z62eO?_|&+>xBmM$@p|z`tIKEdpPf8%qI>4r7@jn<=eta*{3~?g(zz{Ke9zc-G^gr? z-7foa?LcS!hmbwzru}ICvbWLlW8;+l-}!^=c32!^nV`+`C*;0-*Y%l94pC;Cb3GXz zzSf%a!{gVr{Y_lVuUj+a)*Ca+!-Hu%xmP&&X-2CuANY8^i{D7Kg6qzP zXz_ps9+lN8ESH{K4`yu&b~I>N9xGlE&;2u*b?+Go!AhN?m-bxlLvtC#MzDF2kFzfHJ1W7ybqdefSqVhbOykd*Yi%EDuhs z4wF{ft^bv2+DDnKb8gj1FuvcV`M}luS>lO<^)8x>y1#R;a=-ZKwWTQQb)ioBbi;zh zD!f5V)8581to1LL7c9!l^PSC$NBPYif!_vAZhmL4)v4U)4UsrLYiH_9rmQDd?)(e5 z^pcH>qvBg*i0dus2r*mp4;zKvu=P#s-ti;2obl`NjjwoYd>e(oo#j_uyRb<7Pv^If zzZ|mGHmV)8^tbO%^>eqMw(@7(&3g{jEp-Najo7V75xI_ZHK*FA`elF{r5}E*d7+j_R diff --git a/docs/assets/js/main.js b/docs/assets/js/main.js deleted file mode 100644 index 39a80669..00000000 --- a/docs/assets/js/main.js +++ /dev/null @@ -1 +0,0 @@ -!function(){var e=function(t){var r=new e.Builder;return r.pipeline.add(e.trimmer,e.stopWordFilter,e.stemmer),r.searchPipeline.add(e.stemmer),t.call(r,r),r.build()};e.version="2.3.7",e.utils={},e.utils.warn=function(e){return function(t){e.console&&console.warn&&console.warn(t)}}(this),e.utils.asString=function(e){return null==e?"":e.toString()},e.utils.clone=function(e){if(null==e)return e;for(var t=Object.create(null),r=Object.keys(e),i=0;i=this.length)return e.QueryLexer.EOS;var t=this.str.charAt(this.pos);return this.pos+=1,t},e.QueryLexer.prototype.width=function(){return this.pos-this.start},e.QueryLexer.prototype.ignore=function(){this.start==this.pos&&(this.pos+=1),this.start=this.pos},e.QueryLexer.prototype.backup=function(){this.pos-=1},e.QueryLexer.prototype.acceptDigitRun=function(){for(var t,r;47<(r=(t=this.next()).charCodeAt(0))&&r<58;);t!=e.QueryLexer.EOS&&this.backup()},e.QueryLexer.prototype.more=function(){return this.pos=this.scrollTop||0===this.scrollTop,isShown!==this.showToolbar&&(this.toolbar.classList.toggle("tsd-page-toolbar--hide"),this.secondaryNav.classList.toggle("tsd-navigation--toolbar-hide")),this.lastY=this.scrollTop},Viewport}(typedoc.EventTarget);typedoc.Viewport=Viewport,typedoc.registerService(Viewport,"viewport")}(typedoc||(typedoc={})),function(typedoc){function Component(options){this.el=options.el}typedoc.Component=Component}(typedoc||(typedoc={})),function(typedoc){typedoc.pointerDown="mousedown",typedoc.pointerMove="mousemove",typedoc.pointerUp="mouseup",typedoc.pointerDownPosition={x:0,y:0},typedoc.preventNextClick=!1,typedoc.isPointerDown=!1,typedoc.isPointerTouch=!1,typedoc.hasPointerMoved=!1,typedoc.isMobile=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),document.documentElement.classList.add(typedoc.isMobile?"is-mobile":"not-mobile"),typedoc.isMobile&&"ontouchstart"in document.documentElement&&(typedoc.isPointerTouch=!0,typedoc.pointerDown="touchstart",typedoc.pointerMove="touchmove",typedoc.pointerUp="touchend"),document.addEventListener(typedoc.pointerDown,function(e){typedoc.isPointerDown=!0,typedoc.hasPointerMoved=!1;var t="touchstart"==typedoc.pointerDown?e.targetTouches[0]:e;typedoc.pointerDownPosition.y=t.pageY||0,typedoc.pointerDownPosition.x=t.pageX||0}),document.addEventListener(typedoc.pointerMove,function(e){if(typedoc.isPointerDown&&!typedoc.hasPointerMoved){var t="touchstart"==typedoc.pointerDown?e.targetTouches[0]:e,x=typedoc.pointerDownPosition.x-(t.pageX||0),y=typedoc.pointerDownPosition.y-(t.pageY||0);typedoc.hasPointerMoved=10scrollTop;)index-=1;for(;index"+match+""}),parent=row.parent||"";(parent=parent.replace(new RegExp(this.query,"i"),function(match){return""+match+""}))&&(name=''+parent+"."+name);var item=document.createElement("li");item.classList.value=row.classes,item.innerHTML='\n '+name+"\n ",this.results.appendChild(item)}}},Search.prototype.setLoadingState=function(value){this.loadingState!=value&&(this.el.classList.remove(SearchLoadingState[this.loadingState].toLowerCase()),this.loadingState=value,this.el.classList.add(SearchLoadingState[this.loadingState].toLowerCase()),this.updateResults())},Search.prototype.setHasFocus=function(value){this.hasFocus!=value&&(this.hasFocus=value,this.el.classList.toggle("has-focus"),value?(this.setQuery(""),this.field.value=""):this.field.value=this.query)},Search.prototype.setQuery=function(value){this.query=value.trim(),this.updateResults()},Search.prototype.setCurrentResult=function(dir){var current=this.results.querySelector(".current");if(current){var rel=1==dir?current.nextElementSibling:current.previousElementSibling;rel&&(current.classList.remove("current"),rel.classList.add("current"))}else(current=this.results.querySelector(1==dir?"li:first-child":"li:last-child"))&¤t.classList.add("current")},Search.prototype.gotoCurrentResult=function(){var current=this.results.querySelector(".current");if(current||(current=this.results.querySelector("li:first-child")),current){var link=current.querySelector("a");link&&(window.location.href=link.href),this.field.blur()}},Search.prototype.bindEvents=function(){var _this=this;this.results.addEventListener("mousedown",function(){_this.resultClicked=!0}),this.results.addEventListener("mouseup",function(){_this.resultClicked=!1,_this.setHasFocus(!1)}),this.field.addEventListener("focusin",function(){_this.setHasFocus(!0),_this.loadIndex()}),this.field.addEventListener("focusout",function(){_this.resultClicked?_this.resultClicked=!1:setTimeout(function(){return _this.setHasFocus(!1)},100)}),this.field.addEventListener("input",function(){_this.setQuery(_this.field.value)}),this.field.addEventListener("keydown",function(e){13==e.keyCode||27==e.keyCode||38==e.keyCode||40==e.keyCode?(_this.preventPress=!0,e.preventDefault(),13==e.keyCode?_this.gotoCurrentResult():27==e.keyCode?_this.field.blur():38==e.keyCode?_this.setCurrentResult(-1):40==e.keyCode&&_this.setCurrentResult(1)):_this.preventPress=!1}),this.field.addEventListener("keypress",function(e){_this.preventPress&&e.preventDefault()}),document.body.addEventListener("keydown",function(e){e.altKey||e.ctrlKey||e.metaKey||!_this.hasFocus&&47this.groups.length-1&&(index=this.groups.length-1),this.index!=index){var to=this.groups[index];if(-1 - - - - - AbstractMatrix | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class AbstractMatrix

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- -
    -
  • - -
    -
    -

    Adds the values of a vector to each column.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

addRowVector

- -
    -
  • - -
    -
    -

    Adds the values of a vector to each row.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- -
    -
  • - -
    -
    -

    Creates an exact and independent copy of the matrix.

    -
    -
    -

    Returns Matrix

    -
  • -
-
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
-
    -
  • - -
    -
    -

    Computes the cumulative sum of the matrix elements (in place, row by row).

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- -
    -
  • - -
    -
    -

    Divides the values of each column by those of a vector.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

divRowVector

- -
    -
  • - -
    -
    -

    Divides the values of each row by those of a vector.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

divide

- - -
-
- -

dot

- -
    -
  • - -
    -
    -

    Computes the dot (scalar) product between the matrix and another.

    -
    -
    -

    Parameters

    - -

    Returns number

    -
  • -
-
-
- -

echelonForm

- -
    -
  • - -
    -
    -

    Returns the row echelon form of the matrix computed using gaussian - elimination.

    -
    -
    -

    Returns Matrix

    -
  • -
-
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new column vector with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix has one column.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is in row echelon form.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is in reduced row echelon form.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix has one row.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix has the same number of rows and columns.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix has one row or one column.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of the matrix.

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value.

    -
    -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- -
    -
  • - -
    -
    -

    Returns the mean of all elements of the matrix.

    -
    -
    -

    Returns number

    -
  • -
  • - -
    -
    -

    Returns the mean by the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns number[]

    -
  • -
-
-
- -

min

-
    -
  • min(): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of the matrix.

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value.

    -
    -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- -
    -
  • - -
    -
    -

    Returns the matrix product between this and other.

    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- -
    -
  • - -
    -
    -

    Multiplies the values of a vector with each column.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- -
    -
  • - -
    -
    -

    Multiplies the values of a vector with each row.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- -
    -
  • - -
    -
    -

    Returns the product of all elements of the matrix.

    -
    -
    -

    Returns number

    -
  • -
  • - -
    -
    -

    Returns the product by the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns number[]

    -
  • -
-
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns the reduced row echelon form of the matrix computed using - gaussian elimination.

    -
    -
    -

    Returns Matrix

    -
  • -
-
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- -
    -
  • - -
    -
    -

    Returns a new row-by-row scaled matrix.

    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- -
    -
  • - -
    -
    -

    Returns the standard deviation of all elements of the matrix.

    -
    -
    -

    Parameters

    - -

    Returns number

    -
  • -
  • - -
    -
    -

    Returns the standard deviation by the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns number[]

    -
  • -
-
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- -
    -
  • - -
    -
    -

    Subtracts the values of a vector from each column.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- -
    -
  • - -
    -
    -

    Subtracts the values of a vector from each row.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

subtract

- - -
-
- -

sum

- -
    -
  • - -
    -
    -

    Returns the sum of all elements of the matrix.

    -
    -
    -

    Returns number

    -
  • -
  • - -
    -
    -

    Returns the sum by the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns number[]

    -
  • -
-
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new 1D array filled row by row with the matrix values.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
-
    -
  • - -
    -
    -

    Returns a 2D array containing a copy of the matrix data.

    -
    -
    -

    Returns number[][]

    -
  • -
-
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- -
    -
  • - -
    -
    -

    Transposes the matrix and returns a new one containing the result.

    -
    -
    -

    Returns Matrix

    -
  • -
-
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- -
    -
  • - -
    -
    -

    Returns the variance of all elements of the matrix.

    -
    -
    -

    Parameters

    - -

    Returns number

    -
  • -
  • - -
    -
    -

    Returns the variance by the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns number[]

    -
  • -
-
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Alias for AbstractMatrix.eye.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
    • -
    • -
      Optional columns: number
      -
    • -
    • -
      Optional value: number
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- -
    -
  • - -
    -
    -

    Returns a matrix whose elements are the maximum between matrix1 and matrix2.

    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

Static min

- -
    -
  • - -
    -
    -

    Returns a matrix whose elements are the minimum between matrix1 and matrix2.

    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/choleskydecomposition.html b/docs/classes/choleskydecomposition.html deleted file mode 100644 index 6ae885c6..00000000 --- a/docs/classes/choleskydecomposition.html +++ /dev/null @@ -1,261 +0,0 @@ - - - - - - CholeskyDecomposition | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class CholeskyDecomposition

-
-
-
-
-
-
-
- -
-
-

Hierarchy

-
    -
  • - CholeskyDecomposition -
  • -
-
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly lowerTriangularMatrix

-
lowerTriangularMatrix: Matrix
- -
-
-
-

Methods

-
- -

isPositiveDefinite

-
    -
  • isPositiveDefinite(): boolean
  • -
- -
-
- -

solve

- - -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/eigenvaluedecomposition.html b/docs/classes/eigenvaluedecomposition.html deleted file mode 100644 index cf5d3457..00000000 --- a/docs/classes/eigenvaluedecomposition.html +++ /dev/null @@ -1,243 +0,0 @@ - - - - - - EigenvalueDecomposition | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class EigenvalueDecomposition

-
-
-
-
-
-
-
- -
-
-

Hierarchy

-
    -
  • - EigenvalueDecomposition -
  • -
-
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly diagonalMatrix

-
diagonalMatrix: Matrix
- -
-
- -

Readonly eigenvectorMatrix

-
eigenvectorMatrix: Matrix
- -
-
- -

Readonly imaginaryEigenvalues

-
imaginaryEigenvalues: number[]
- -
-
- -

Readonly realEigenvalues

-
realEigenvalues: number[]
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/ludecomposition.html b/docs/classes/ludecomposition.html deleted file mode 100644 index 1eb6bad5..00000000 --- a/docs/classes/ludecomposition.html +++ /dev/null @@ -1,296 +0,0 @@ - - - - - - LuDecomposition | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class LuDecomposition

-
-
-
-
-
-
-
- -
-
-

Hierarchy

-
    -
  • - LuDecomposition -
  • -
-
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly determinant

-
determinant: number
- -
-
- -

Readonly lowerTriangularMatrix

-
lowerTriangularMatrix: Matrix
- -
-
- -

Readonly pivotPermutationVector

-
pivotPermutationVector: number[]
- -
-
- -

Readonly upperTriangularMatrix

-
upperTriangularMatrix: Matrix
- -
-
-
-

Methods

-
- -

isSingular

-
    -
  • isSingular(): boolean
  • -
- -
-
- -

solve

- - -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrix.html b/docs/classes/matrix.html deleted file mode 100644 index a87d5a80..00000000 --- a/docs/classes/matrix.html +++ /dev/null @@ -1,6571 +0,0 @@ - - - - - - Matrix | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class Matrix

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumn

-
    -
  • addColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Adds a new column to the matrix (in place).

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index. Default: this.columns.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Column to add.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

addColumnVector

- - -
-
- -

addRow

- -
    -
  • - -
    -
    -

    Adds a new row to the matrix (in place).

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index. Default: this.rows.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Row to add.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

removeColumn

-
    -
  • removeColumn(index: number): this
  • -
-
    -
  • - -
    -
    -

    Removes a column from the matrix (in place).

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

removeRow

-
    -
  • removeRow(index: number): this
  • -
-
    -
  • - -
    -
    -

    Removes a row from the matrix (in place).

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixcolumnselectionview.html b/docs/classes/matrixcolumnselectionview.html deleted file mode 100644 index 106091d9..00000000 --- a/docs/classes/matrixcolumnselectionview.html +++ /dev/null @@ -1,6389 +0,0 @@ - - - - - - MatrixColumnSelectionView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixColumnSelectionView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixcolumnview.html b/docs/classes/matrixcolumnview.html deleted file mode 100644 index 18ff5fd0..00000000 --- a/docs/classes/matrixcolumnview.html +++ /dev/null @@ -1,6389 +0,0 @@ - - - - - - MatrixColumnView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixColumnView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixflipcolumnview.html b/docs/classes/matrixflipcolumnview.html deleted file mode 100644 index f655f712..00000000 --- a/docs/classes/matrixflipcolumnview.html +++ /dev/null @@ -1,6386 +0,0 @@ - - - - - - MatrixFlipColumnView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixFlipColumnView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixfliprowview.html b/docs/classes/matrixfliprowview.html deleted file mode 100644 index 0a5f6a2f..00000000 --- a/docs/classes/matrixfliprowview.html +++ /dev/null @@ -1,6386 +0,0 @@ - - - - - - MatrixFlipRowView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixFlipRowView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixrowselectionview.html b/docs/classes/matrixrowselectionview.html deleted file mode 100644 index 1f3b8897..00000000 --- a/docs/classes/matrixrowselectionview.html +++ /dev/null @@ -1,6389 +0,0 @@ - - - - - - MatrixRowSelectionView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixRowSelectionView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixrowview.html b/docs/classes/matrixrowview.html deleted file mode 100644 index 4ff40f2d..00000000 --- a/docs/classes/matrixrowview.html +++ /dev/null @@ -1,6389 +0,0 @@ - - - - - - MatrixRowView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixRowView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixselectionview.html b/docs/classes/matrixselectionview.html deleted file mode 100644 index 77eeeb9a..00000000 --- a/docs/classes/matrixselectionview.html +++ /dev/null @@ -1,6392 +0,0 @@ - - - - - - MatrixSelectionView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixSelectionView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixsubview.html b/docs/classes/matrixsubview.html deleted file mode 100644 index f5a0aef9..00000000 --- a/docs/classes/matrixsubview.html +++ /dev/null @@ -1,6398 +0,0 @@ - - - - - - MatrixSubView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixSubView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

-
    -
  • new MatrixSubView(matrix: AbstractMatrix, startRow: number, endRow: number, startColumn: number, endColumn: number): MatrixSubView
  • -
- -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/matrixtransposeview.html b/docs/classes/matrixtransposeview.html deleted file mode 100644 index 67a7a776..00000000 --- a/docs/classes/matrixtransposeview.html +++ /dev/null @@ -1,6386 +0,0 @@ - - - - - - MatrixTransposeView | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class MatrixTransposeView

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/nipals.html b/docs/classes/nipals.html deleted file mode 100644 index 1e2dd18e..00000000 --- a/docs/classes/nipals.html +++ /dev/null @@ -1,322 +0,0 @@ - - - - - - Nipals | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class Nipals

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - Nipals -
  • -
-
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-
-
-
-

Constructors

-
- -

constructor

- -
    -
  • - -
    -
    -

    Implementation of the NIPALS algorithm. - Geladi, P and Kowalski, B.R. (1986) - Partial least squares and regression: - a tutorial. - Analytica Chimica Acta 185, 1-17.

    -
    -
    -

    Parameters

    - -

    Returns Nipals

    -
  • -
-
-
-
-

Properties

-
- -

betas

-
betas: number
- -
-
- -

p

- - -
-
- -

q

- - -
-
- -

s

- - -
-
- -

t

-
t: number
- -
-
- -

u

-
u: number
- -
-
- -

w

- - -
-
- -

xResidual

-
xResidual: Matrix
- -
-
- -

yResidual

-
yResidual: Matrix
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/qrdecomposition.html b/docs/classes/qrdecomposition.html deleted file mode 100644 index 4d716e92..00000000 --- a/docs/classes/qrdecomposition.html +++ /dev/null @@ -1,282 +0,0 @@ - - - - - - QrDecomposition | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class QrDecomposition

-
-
-
-
-
-
-
- -
-
-

Hierarchy

-
    -
  • - QrDecomposition -
  • -
-
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly orthogonalMatrix

-
orthogonalMatrix: Matrix
- -
-
- -

Readonly upperTriangularMatrix

-
upperTriangularMatrix: Matrix
- -
-
-
-

Methods

-
- -

isFullRank

-
    -
  • isFullRank(): boolean
  • -
- -
-
- -

solve

- -
    -
  • - -
    -
    -

    Solve a problem of least square (Ax=b) by using the QR decomposition. Useful when A is rectangular, but not working when A is singular. - Example : We search to approximate x, with A matrix shape m*n, x vector size n, b vector size m (m > n). We will use : - var qr = QrDecomposition(A); - var x = qr.solve(b);

    -
    -
    -

    Parameters

    -
      -
    • -
      value: Matrix
      -
      -

      Matrix 1D which is the vector b (in the equation Ax = b).

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The vector x.
    • -
    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/singularvaluedecomposition.html b/docs/classes/singularvaluedecomposition.html deleted file mode 100644 index 3dfbdf9e..00000000 --- a/docs/classes/singularvaluedecomposition.html +++ /dev/null @@ -1,406 +0,0 @@ - - - - - - SingularValueDecomposition | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class SingularValueDecomposition

-
-
-
-
-
-
-
- -
-
-

Hierarchy

-
    -
  • - SingularValueDecomposition -
  • -
-
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly condition

-
condition: number
- -
-
- -

Readonly diagonal

-
diagonal: number[]
- -
-
- -

Readonly diagonalMatrix

-
diagonalMatrix: Matrix
- -
-
- -

Readonly leftSingularVectors

-
leftSingularVectors: Matrix
- -
-
- -

Readonly norm2

-
norm2: number
- -
-
- -

Readonly rank

-
rank: number
- -
-
- -

Readonly rightSingularVectors

-
rightSingularVectors: Matrix
- -
-
- -

Readonly threshold

-
threshold: number
- -
-
-
-

Methods

-
- -

inverse

- -
    -
  • - -
    -
    -

    Get the inverse of the matrix. We compute the inverse of a matrix using SVD when this matrix is singular or ill-conditioned. Example : - var svd = SingularValueDecomposition(A); - var inverseA = svd.inverse();

    -
    -
    -

    Returns Matrix

    -
      -
    • The approximation of the inverse of the matrix.
    • -
    -
  • -
-
-
- -

solve

- -
    -
  • - -
    -
    -

    Solve a problem of least square (Ax=b) by using the SVD. Useful when A is singular. When A is not singular, it would be better to use qr.solve(value). - Example : We search to approximate x, with A matrix shape m*n, x vector size n, b vector size m (m > n). We will use : - var svd = SingularValueDecomposition(A); - var x = svd.solve(b);

    -
    -
    -

    Parameters

    -
      -
    • -
      value: Matrix
      -
      -

      Matrix 1D which is the vector b (in the equation Ax = b).

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The vector x.
    • -
    -
  • -
-
-
- -

solveForDiagonal

-
    -
  • solveForDiagonal(value: number[]): Matrix
  • -
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/wrappermatrix1d.html b/docs/classes/wrappermatrix1d.html deleted file mode 100644 index fbffd2d2..00000000 --- a/docs/classes/wrappermatrix1d.html +++ /dev/null @@ -1,6389 +0,0 @@ - - - - - - WrapperMatrix1D | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class WrapperMatrix1D

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/classes/wrappermatrix2d.html b/docs/classes/wrappermatrix2d.html deleted file mode 100644 index e9dcec09..00000000 --- a/docs/classes/wrappermatrix2d.html +++ /dev/null @@ -1,6386 +0,0 @@ - - - - - - WrapperMatrix2D | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Class WrapperMatrix2D

-
-
-
-
-
-
-
-

Hierarchy

- -
-
-

Index

-
-
-
-

Constructors

- -
-
-

Properties

- -
-
-

Methods

- -
-
-
-
-
-

Constructors

-
- -

constructor

- - -
-
-
-

Properties

-
- -

Readonly columns

-
columns: number
- -
-
-

Number of columns of the matrix.

-
-
-
-
- -

Readonly rows

-
rows: number
- -
-
-

Number of rows of the matrix.

-
-
-
-
- -

Readonly size

-
size: number
- -
-
-

Total number of elements in the matrix.

-
-
-
-
-
-

Methods

-
- -

abs

-
    -
  • abs(): this
  • -
- -
-
- -

acos

-
    -
  • acos(): this
  • -
- -
-
- -

acosh

-
    -
  • acosh(): this
  • -
- -
-
- -

add

- - -
-
- -

addColumnVector

- - -
-
- -

addRowVector

- - -
-
- -

and

- - -
-
- -

apply

-
    -
  • apply(callback: (row: number, column: number) => void): this
  • -
-
    -
  • - -
    -
    -

    Applies a callback for each element of the matrix. The function is called in the matrix (this) context.

    -
    -
    -

    Parameters

    -
      -
    • -
      callback: (row: number, column: number) => void
      -
      -

      Function that will be called for each element in the matrix.

      -
      -
        -
      • -
          -
        • (row: number, column: number): void
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            row: number
            -
          • -
          • -
            column: number
            -
          • -
          -

          Returns void

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

asin

-
    -
  • asin(): this
  • -
- -
-
- -

asinh

-
    -
  • asinh(): this
  • -
- -
-
- -

atan

-
    -
  • atan(): this
  • -
- -
-
- -

atanh

-
    -
  • atanh(): this
  • -
- -
-
- -

cbrt

-
    -
  • cbrt(): this
  • -
- -
-
- -

ceil

-
    -
  • ceil(): this
  • -
- -
-
- -

center

- -
    -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean value of the matrix is - subtracted from every value.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Center the matrix in-place. By default, the mean values in the give - dimension are subtracted from the values.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

clone

- - -
-
- -

clz32

-
    -
  • clz32(): this
  • -
- -
-
- -

cos

-
    -
  • cos(): this
  • -
- -
-
- -

cosh

-
    -
  • cosh(): this
  • -
- -
-
- -

cumulativeSum

-
    -
  • cumulativeSum(): this
  • -
- -
-
- -

diag

-
    -
  • diag(): number[]
  • -
-
    -
  • - -
    -
    -

    Returns an array containing the diagonal values of the matrix.

    -
    -
    -

    Returns number[]

    -
  • -
-
-
- -

diagonal

-
    -
  • diagonal(): number[]
  • -
- -
-
- -

div

- - -
-
- -

divColumnVector

- - -
-
- -

divRowVector

- - -
-
- -

divide

- - -
-
- -

dot

- - -
-
- -

echelonForm

- - -
-
- -

exp

-
    -
  • exp(): this
  • -
- -
-
- -

expm1

-
    -
  • expm1(): this
  • -
- -
-
- -

fill

-
    -
  • fill(value: number): this
  • -
-
    -
  • - -
    -
    -

    Fills the matrix with a given value. All elements will be set to this value.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: number
      -
      -

      New value.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

flipColumns

-
    -
  • flipColumns(): this
  • -
- -
-
- -

flipRows

-
    -
  • flipRows(): this
  • -
- -
-
- -

floor

-
    -
  • floor(): this
  • -
- -
-
- -

fround

-
    -
  • fround(): this
  • -
- -
-
- -

get

-
    -
  • get(rowIndex: number, columnIndex: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the value of the given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    -

    Returns number

    -
      -
    • The value of the element.
    • -
    -
  • -
-
-
- -

getColumn

-
    -
  • getColumn(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given column index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getColumnVector

-
    -
  • getColumnVector(index: number): Matrix
  • -
- -
-
- -

getRow

-
    -
  • getRow(index: number): number[]
  • -
-
    -
  • - -
    -
    -

    Returns a new array with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number[]

    -
  • -
-
-
- -

getRowVector

-
    -
  • getRowVector(index: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a new row vector with the values from the given row index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

isColumnVector

-
    -
  • isColumnVector(): boolean
  • -
- -
-
- -

isEchelonForm

-
    -
  • isEchelonForm(): boolean
  • -
- -
-
- -

isReducedEchelonForm

-
    -
  • isReducedEchelonForm(): boolean
  • -
- -
-
- -

isRowVector

-
    -
  • isRowVector(): boolean
  • -
- -
-
- -

isSquare

-
    -
  • isSquare(): boolean
  • -
- -
-
- -

isSymmetric

-
    -
  • isSymmetric(): boolean
  • -
-
    -
  • - -
    -
    -

    Returns whether the matrix is square and has the same values on both sides of the diagonal.

    -
    -
    -

    Returns boolean

    -
  • -
-
-
- -

isVector

-
    -
  • isVector(): boolean
  • -
- -
-
- -

kroneckerProduct

- - -
-
- -

leftShift

- - -
-
- -

log

-
    -
  • log(): this
  • -
- -
-
- -

log10

-
    -
  • log10(): this
  • -
- -
-
- -

log1p

-
    -
  • log1p(): this
  • -
- -
-
- -

log2

-
    -
  • log2(): this
  • -
- -
-
- -

max

-
    -
  • max(): number
  • -
- -
-
- -

maxColumn

-
    -
  • maxColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxColumnIndex

-
    -
  • maxColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

maxIndex

-
    -
  • maxIndex(): [number, number]
  • -
- -
-
- -

maxRow

-
    -
  • maxRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

maxRowIndex

-
    -
  • maxRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mean

- - -
-
- -

min

-
    -
  • min(): number
  • -
- -
-
- -

minColumn

-
    -
  • minColumn(column: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minColumnIndex

-
    -
  • minColumnIndex(column: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the minimum value of one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      column: number
      -
      -

      Column index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

minIndex

-
    -
  • minIndex(): [number, number]
  • -
- -
-
- -

minRow

-
    -
  • minRow(row: number): number
  • -
-
    -
  • - -
    -
    -

    Returns the minimum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

minRowIndex

-
    -
  • minRowIndex(row: number): [number, number]
  • -
-
    -
  • - -
    -
    -

    Returns the index of the maximum value of one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      row: number
      -
      -

      Row index.

      -
      -
    • -
    -

    Returns [number, number]

    -
  • -
-
-
- -

mmul

- - -
-
- -

mmulStrassen

- - -
-
- -

mod

- - -
-
- -

modulus

- - -
-
- -

mul

- - -
-
- -

mulColumn

-
    -
  • mulColumn(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a column with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulColumnVector

- - -
-
- -

mulRow

-
    -
  • mulRow(index: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Multiplies the values of a row with a scalar.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      value: number
      -
      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

mulRowVector

- - -
-
- -

multiply

- - -
-
- -

neg

-
    -
  • neg(): this
  • -
-
    -
  • - -
    -
    -

    Negates the matrix. All elements will be multiplied by -1.

    -
    -
    -

    Returns this

    -
  • -
-
-
- -

negate

-
    -
  • negate(): this
  • -
- -
-
- -

norm

-
    -
  • norm(type: "frobenius" | "max"): number
  • -
-
    -
  • - -
    -
    -

    Returns the norm of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      type: "frobenius" | "max"
      -
      -

      Norm type. Default: 'frobenius'.

      -
      -
    • -
    -

    Returns number

    -
  • -
-
-
- -

not

-
    -
  • not(): this
  • -
- -
-
- -

or

- - -
-
- -

pow

- - -
-
- -

product

- - -
-
- -

reducedEchelonForm

-
    -
  • reducedEchelonForm(): Matrix
  • -
- -
-
- -

repeat

- -
    -
  • - -
    -
    -

    Creates a new matrix that is a repetition of the current matrix. New matrix has rows times the number of - rows of the original matrix, and columns times the number of columns of the original matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2]]); - matrix.repeat({ rows: 2 }); // [[1, 2], [1, 2]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

rightShift

- - -
-
- -

round

-
    -
  • round(): this
  • -
- -
-
- -

scale

- -
    -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by their - standard deviation.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
  • - -
    -
    -

    Scale the matrix in-place. By default, values are divided by the - standard deviation in the given dimension.

    -
    -
    -

    Parameters

    - -

    Returns this

    -
  • -
-
-
- -

scaleColumns

- -
    -
  • - -
    -
    -

    Returns a new column-by-column scaled matrix.

    -
    -
    -
    example
    -

    var matrix = new Matrix([[1, 2], [-1, 0]]); - var scaledMatrix = matrix.scaleColumns(); // [[1, 1], [0, 0]]

    -
    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
  • -
-
-
- -

scaleRows

- - -
-
- -

selection

-
    -
  • selection(rowIndices: number[], columnIndices: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Return a new matrix based on a selection of rows and columns. - Order of the indices matters and the same index can be used more than once.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndices: number[]
      -
      -

      The row indices to select.

      -
      -
    • -
    • -
      columnIndices: number[]
      -
      -

      The column indices to select.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

set

-
    -
  • set(rowIndex: number, columnIndex: number, value: number): this
  • -
-
    -
  • - -
    -
    -

    Sets a given element of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      rowIndex: number
      -
      -

      Index of the element's row.

      -
      -
    • -
    • -
      columnIndex: number
      -
      -

      Index of the element's column.

      -
      -
    • -
    • -
      value: number
      -
      -

      The new value for the element.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setColumn

-
    -
  • setColumn(index: number, array: number[] | AbstractMatrix): this
  • -
-
    -
  • - -
    -
    -

    Sets a column at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Column index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setRow

- -
    -
  • - -
    -
    -

    Sets a row at the given index.

    -
    -
    -

    Parameters

    -
      -
    • -
      index: number
      -
      -

      Row index.

      -
      -
    • -
    • -
      array: number[] | AbstractMatrix
      -
      -

      Array or vector to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

setSubMatrix

-
    -
  • setSubMatrix(matrix: MaybeMatrix | number[], startRow: number, startColumn: number): this
  • -
-
    -
  • - -
    -
    -

    Set a part of the matrix to the given sub-matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix | number[]
      -
      -

      The source matrix from which to extract values.

      -
      -
    • -
    • -
      startRow: number
      -
      -

      The index of the first row to set.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      The index of the first column to set.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sign

-
    -
  • sign(): this
  • -
- -
-
- -

signPropagatingRightShift

- - -
-
- -

sin

-
    -
  • sin(): this
  • -
- -
-
- -

sinh

-
    -
  • sinh(): this
  • -
- -
-
- -

sortColumns

-
    -
  • sortColumns(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the columns in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sortRows

-
    -
  • sortRows(compareFunction?: (a: number, b: number) => number): this
  • -
-
    -
  • - -
    -
    -

    Sorts the rows in-place.

    -
    -
    -

    Parameters

    -
      -
    • -
      Optional compareFunction: (a: number, b: number) => number
      -
      -
      -
        -
      • -
          -
        • (a: number, b: number): number
        • -
        -
          -
        • -

          Parameters

          -
            -
          • -
            a: number
            -
          • -
          • -
            b: number
            -
          • -
          -

          Returns number

          -
        • -
        -
      • -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

sqrt

-
    -
  • sqrt(): this
  • -
- -
-
- -

standardDeviation

- - -
-
- -

strassen2x2

- - -
-
- -

strassen3x3

- - -
-
- -

sub

- - -
-
- -

subColumnVector

- - -
-
- -

subMatrix

-
    -
  • subMatrix(startRow: number, endRow: number, startColumn: number, endColumn: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      startRow: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      endRow: number
      -
      -

      Last row index.

      -
      -
    • -
    • -
      startColumn: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      endColumn: number
      -
      -

      Last column index.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixColumn

-
    -
  • subMatrixColumn(indices: number[], startRow?: number, endRow?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of column indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the column indices.

      -
      -
    • -
    • -
      Optional startRow: number
      -
      -

      First row index. Default: 0.

      -
      -
    • -
    • -
      Optional endRow: number
      -
      -

      Last row index. Default: this.rows - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subMatrixRow

-
    -
  • subMatrixRow(indices: number[], startColumn?: number, endColumn?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Returns a subset of the matrix based on an array of row indices.

    -
    -
    -

    Parameters

    -
      -
    • -
      indices: number[]
      -
      -

      Array containing the row indices.

      -
      -
    • -
    • -
      Optional startColumn: number
      -
      -

      First column index. Default: 0.

      -
      -
    • -
    • -
      Optional endColumn: number
      -
      -

      Last column index. Default: this.columns - 1.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

subRowVector

- - -
-
- -

subtract

- - -
-
- -

sum

- - -
-
- -

swapColumns

-
    -
  • swapColumns(column1: number, column2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two columns.

    -
    -
    -

    Parameters

    -
      -
    • -
      column1: number
      -
      -

      First column index.

      -
      -
    • -
    • -
      column2: number
      -
      -

      Second column index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

swapRows

-
    -
  • swapRows(row1: number, row2: number): this
  • -
-
    -
  • - -
    -
    -

    Swap two rows.

    -
    -
    -

    Parameters

    -
      -
    • -
      row1: number
      -
      -

      First row index.

      -
      -
    • -
    • -
      row2: number
      -
      -

      Second row index.

      -
      -
    • -
    -

    Returns this

    -
  • -
-
-
- -

tan

-
    -
  • tan(): this
  • -
- -
-
- -

tanh

-
    -
  • tanh(): this
  • -
- -
-
- -

tensorProduct

- - -
-
- -

to1DArray

-
    -
  • to1DArray(): number[]
  • -
- -
-
- -

to2DArray

-
    -
  • to2DArray(): number[][]
  • -
- -
-
- -

toJSON

-
    -
  • toJSON(): number[][]
  • -
- -
-
- -

toString

- - -
-
- -

trace

-
    -
  • trace(): number
  • -
-
    -
  • - -
    -
    -

    Returns the trace of the matrix (sum of the diagonal elements).

    -
    -
    -

    Returns number

    -
  • -
-
-
- -

transpose

- - -
-
- -

trunc

-
    -
  • trunc(): this
  • -
- -
-
- -

variance

- - -
-
- -

xor

- - -
-
- -

zeroFillRightShift

- - -
-
- -

Static abs

- - -
-
- -

Static acos

- - -
-
- -

Static acosh

- - -
-
- -

Static add

- - -
-
- -

Static and

- - -
-
- -

Static asin

- - -
-
- -

Static asinh

- - -
-
- -

Static atan

- - -
-
- -

Static atanh

- - -
-
- -

Static cbrt

- - -
-
- -

Static ceil

- - -
-
- -

Static checkMatrix

-
    -
  • checkMatrix(value: any): Matrix
  • -
-
    -
  • - -
    -
    -

    Check that the provided value is a Matrix and tries to instantiate one if not.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

Static clz32

- - -
-
- -

Static columnVector

-
    -
  • columnVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a column vector, a matrix with only one column.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static cos

- - -
-
- -

Static cosh

- - -
-
- -

Static diag

-
    -
  • diag(data: number[], rows?: number, columns?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a diagonal matrix based on the given array.

    -
    -
    -

    Parameters

    -
      -
    • -
      data: number[]
      -
      -

      Array containing the data for the diagonal.

      -
      -
    • -
    • -
      Optional rows: number
      -
      -

      Number of rows. Default: data.length.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new diagonal matrix.
    • -
    -
  • -
-
-
- -

Static diagonal

-
    -
  • diagonal(data: number[], rows?: number, columns?: number): Matrix
  • -
- -
-
- -

Static div

- - -
-
- -

Static divide

- - -
-
- -

Static exp

- - -
-
- -

Static expm1

- - -
-
- -

Static eye

-
    -
  • eye(rows: number, columns?: number, value?: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates an identity matrix with the given dimension. Values of the diagonal will be 1 and others will be 0.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      Optional columns: number
      -
      -

      Number of columns. Default: rows.

      -
      -
    • -
    • -
      Optional value: number
      -
      -

      Value to fill the diagonal with. Default: 1.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new identity matrix.
    • -
    -
  • -
-
-
- -

Static floor

- - -
-
- -

Static from1DArray

-
    -
  • from1DArray(newRows: number, newColumns: number, newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Constructs a matrix with the chosen dimensions from a 1D array.

    -
    -
    -

    Parameters

    -
      -
    • -
      newRows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      newColumns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the matrix.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static fround

- - -
-
- -

Static identity

-
    -
  • identity(rows: number, columns?: number, value?: number): Matrix
  • -
- -
-
- -

Static isMatrix

-
    -
  • isMatrix(value: any): value is AbstractMatrix
  • -
-
    -
  • - -
    -
    -

    Returns whether value is a Matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      value: any
      -
      -

      The value to check.

      -
      -
    • -
    -

    Returns value is AbstractMatrix

    -
  • -
-
-
- -

Static leftShift

- - -
-
- -

Static log

- - -
-
- -

Static log10

- - -
-
- -

Static log1p

- - -
-
- -

Static log2

- - -
-
- -

Static max

- - -
-
- -

Static min

- - -
-
- -

Static mod

- - -
-
- -

Static modulus

- - -
-
- -

Static mul

- - -
-
- -

Static multiply

- - -
-
- -

Static not

- - -
-
- -

Static ones

-
    -
  • ones(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to one.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static or

- - -
-
- -

Static pow

- - -
-
- -

Static rand

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be randomly set.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomOptions
      -
      -

      Options object.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static randInt

- -
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be random integers.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    • -
      Optional options: IRandomIntOptions
      -
    • -
    -

    Returns Matrix

    -
      -
    • The new matrix.
    • -
    -
  • -
-
-
- -

Static random

- - -
-
- -

Static rightShift

- - -
-
- -

Static round

- - -
-
- -

Static rowVector

-
    -
  • rowVector(newData: number[]): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a row vector, a matrix with only one row.

    -
    -
    -

    Parameters

    -
      -
    • -
      newData: number[]
      -
      -

      A 1D array containing data for the vector.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
- -

Static sign

- - -
-
- -

Static signPropagatingRightShift

- - -
-
- -

Static sin

- - -
-
- -

Static sinh

- - -
-
- -

Static sqrt

- - -
-
- -

Static sub

- - -
-
- -

Static subtract

- - -
-
- -

Static tan

- - -
-
- -

Static tanh

- - -
-
- -

Static trunc

- - -
-
- -

Static xor

- - -
-
- -

Static zeroFillRightShift

- - -
-
- -

Static zeros

-
    -
  • zeros(rows: number, columns: number): Matrix
  • -
-
    -
  • - -
    -
    -

    Creates a matrix with the given dimensions. Values will be set to zero. - This is equivalent to calling the Matrix constructor.

    -
    -
    -

    Parameters

    -
      -
    • -
      rows: number
      -
      -

      Number of rows.

      -
      -
    • -
    • -
      columns: number
      -
      -

      Number of columns.

      -
      -
    • -
    -

    Returns Matrix

    -

    The new matrix.

    -
  • -
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/globals.html b/docs/globals.html deleted file mode 100644 index ba07f3b4..00000000 --- a/docs/globals.html +++ /dev/null @@ -1,665 +0,0 @@ - - - - - - ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

ml-matrix

-
-
-
-
-
-
-
-

Index

-
- -
-
-
-

Type aliases

-
- -

MatrixDimension

-
MatrixDimension: "row" | "column"
- -
-
- -

MaybeMatrix

-
MaybeMatrix: AbstractMatrix | number[][]
- -
-
- -

ScalarOrMatrix

-
ScalarOrMatrix: number | MaybeMatrix
- -
-
-
-

Functions

-
- -

correlation

- - -
-
- -

covariance

- - -
-
- -

determinant

- -
    -
  • - -
    -
    -

    Calculates and returns the determinant of a matrix.

    -
    -
    -

    Parameters

    - -

    Returns number

    -
  • -
-
-
- -

inverse

- -
    -
  • - -
    -
    -

    Computes the inverse of a matrix.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix
      -
      -

      Matrix to invert.

      -
      -
    • -
    • -
      Optional useSVD: boolean
      -
      -

      Use the singular value decomposition to compute the inverse. Default: false.

      -
      -
    • -
    -

    Returns Matrix

    -
  • -
-
-
- -

linearDependencies

- -
    -
  • - -
    -
    -

    Creates a matrix which represents the dependencies between rows. - If a row is a linear combination of others rows, the result will be a row with the coefficients of this combination. - For example : for A = [[2, 0, 0, 1], [0, 1, 6, 0], [0, 3, 0, 1], [0, 0, 1, 0], [0, 1, 2, 0]], the result will be [[0, 0, 0, 0, 0], [0, 0, 0, 4, 1], [0, 0, 0, 0, 0], [0, 0.25, 0, 0, -0.25], [0, 1, 0, -4, 0]]

    -
    -
    -

    Parameters

    - -

    Returns Matrix

    -
      -
    • The matrix which represents the dependencies between rows.
    • -
    -
  • -
-
-
- -

pseudoInverse

- -
    -
  • - -
    -
    -

    Returns inverse of a matrix if it exists or the pseudoinverse.

    -
    -
    -

    Parameters

    -
      -
    • -
      matrix: MaybeMatrix
      -
    • -
    • -
      Optional threshold: number
      -
      -

      Threshold for taking inverse of singular values. Default: Number.EPSILON.

      -
      -
    • -
    -

    Returns Matrix

    -
      -
    • The (pseudo)inverted matrix.
    • -
    -
  • -
-
-
- -

solve

- - -
-
- -

wrap

- - -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 103a6ee2..00000000 --- a/docs/index.html +++ /dev/null @@ -1,447 +0,0 @@ - - - - - - ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

ml-matrix

-
-
-
-
-
-
-
- -

ml-matrix

-
-

NPM version - build status - npm download

-

Matrix manipulation and computation library.

- -

Installation

-
-

$ npm install ml-matrix

- -

Usage

-
- -

As an ES module

-
-
import { Matrix } from 'ml-matrix';
-
-const matrix = Matrix.ones(5, 5);
- -

As a CommonJS module

-
-
const { Matrix } = require('ml-matrix');
-
-const matrix = Matrix.ones(5, 5);
- -

API Documentation

- - -

Examples

-
- -

Standard operations

-
-
const { Matrix } = require('ml-matrix');
-
-var A = new Matrix([[1, 1], [2, 2]]);
-var B = new Matrix([[3, 3], [1, 1]]);
-var C = new Matrix([[3, 3], [1, 1]]);
-
-// ============================
-// Operations with the matrix :
-// =============================
-
-// operations :
-const addition = Matrix.add(A, B); // addition = Matrix [[4, 4], [3, 3], rows: 2, columns: 2]
-const substraction = Matrix.sub(A, B); // substraction = Matrix [[-2, -2], [1, 1], rows: 2, columns: 2]
-const multiplication = A.mmul(B); // multiplication = Matrix [[4, 4], [8, 8], rows: 2, columns: 2]
-const mulByNumber = Matrix.mul(A, 10); // mulByNumber = Matrix [[10, 10], [20, 20], rows: 2, columns: 2]
-const divByNumber = Matrix.div(A, 10); // divByNumber = Matrix [[0.1, 0.1], [0.2, 0.2], rows: 2, columns: 2]
-const modulo = Matrix.mod(B, 2); // modulo = Matrix [[ 1, 1], [1, 1], rows: 2, columns: 2]
-const maxMatrix = Matrix.max(A, B); // max = Matrix [[3, 3], [2, 2], rows: 2, columns: 2]
-const minMatrix = Matrix.min(A, B); // max = Matrix [[1, 1], [1, 1], rows: 2, columns: 2]
-
-// Inplace operations : (consider that Cinit = C before all the operations below)
-C.add(A); // => C = Cinit + A
-C.sub(A); // => C = Cinit
-C.mul(10); // => C = 10 * Cinit
-C.div(10); // => C = Cinit
-C.mod(2); // => C = Cinit % 2
-
-// Standard Math operations : (abs, cos, round, etc.)
-var A = new Matrix([[1, 1], [-1, -1]]);
-var expon = Matrix.exp(A); // expon = Matrix [[Math.exp(1), Math.exp(1)], [Math.exp(-1), Math.exp(-1)], rows: 2, columns: 2].
-var cosinus = Matrix.cos(A); // cosinus = Matrix [[Math.cos(1), Math.cos(1)], [Math.cos(-1), Math.cos(-1)], rows: 2, columns: 2].
-var absolute = Matrix.abs(A); // expon = absolute [[1, 1], [1, 1], rows: 2, columns: 2].
-// you can use 'abs', 'acos', 'acosh', 'asin', 'asinh', 'atan', 'atanh', 'cbrt', 'ceil', 'clz32', 'cos', 'cosh', 'exp', 'expm1', 'floor', 'fround', 'log', 'log1p', 'log10', 'log2', 'round', 'sign', 'sin', 'sinh', 'sqrt', 'tan', 'tanh', 'trunc'
-// Note : you can do it inplace too as A.abs()
-
-// ============================
-// Manipulation of the matrix :
-// =============================
-
-var numberRows = A.rows; // A has 2 rows
-var numberCols = A.columns; // A has 2 columns
-var firstValue = A.get(0, 0); // get(rows, columns)
-var numberElements = A.size; // 2 * 2 = 4 elements
-var isRow = A.isRowVector(); // false because A has more that 1 row
-var isColumn = A.isColumnVector(); // false because A has more that 1 column
-var isSquare = A.isSquare(); // true, because A is 2 * 2 matrix
-var isSym = A.isSymmetric(); // false, because A is not symmetric
-// remember : A = Matrix [[1, 1], [-1, -1], rows: 2, columns: 2]
-A.set(1, 0, 10); // A = Matrix [[1, 1], [10, -1], rows: 2, columns: 2]. We have change the second row and the first column
-var diag = A.diag(); // diag = [1, -1], i.e values in the diagonal.
-var m = A.mean(); // m = 2.75
-var product = A.prod(); // product = -10, i.e product of all values of the matrix
-var norm = A.norm(); // norm = 10.14889156509222, i.e Frobenius norm of the matrix
-var transpose = A.transpose(); // tranpose = Matrix [[1, 10], [1, -1], rows: 2, columns: 2]
-
-// ============================
-// Instanciation of matrix :
-// =============================
-
-var z = Matrix.zeros(3, 2); // z = Matrix [[0, 0], [0, 0], [0, 0], rows: 3, columns: 2]
-var z = Matrix.ones(2, 3); // z = Matrix [[1, 1, 1], [1, 1, 1], rows: 2, columns: 3]
-var z = Matrix.eye(3, 4); // Matrix [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], rows: 3, columns: 4]. there are 1 only in the diagonal
- -

Maths

-
-
const {
-  Matrix,
-  inverse,
-  solve,
-  linearDependencies,
-  QrDecomposition,
-  LuDecomposition,
-  CholeskyDecomposition,
-} = require('ml-matrix');
-
-//===========================
-// inverse and pseudo-inverse
-//===========================
-
-var A = new Matrix([[2, 3, 5], [4, 1, 6], [1, 3, 0]]);
-var inverseA = inverse(A);
-var B = A.mmul(inverseA); // B = A * inverse(A), so B ~= Identity
-
-// if A is singular, you can use SVD :
-var A = new Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]); // A is singular, so the standard computation of inverse won't work (you can test if you don't trust me^^)
-var inverseA = inverse(A, (useSVD = true)); // inverseA is only an approximation of the inverse, by using the Singular Values Decomposition
-var B = A.mmul(inverseA); // B = A * inverse(A), but inverse(A) is only an approximation, so B doesn't really be identity.
-
-// if you want the pseudo-inverse of a matrix :
-var A = new Matrix([[1, 2], [3, 4], [5, 6]]);
-var pseudoInverseA = A.pseudoInverse();
-var B = A.mmul(pseudoInverseA).mmul(A); // with pseudo inverse, A*pseudo-inverse(A)*A ~= A. It's the case here
-
-//=============
-// Least square
-//=============
-
-// Least square is the following problem : We search x, such as A.x = b (A, x and b are matrix or vectors).
-// Below, how to solve least square with our function
-
-// If A is non singular :
-var A = new Matrix([[3, 1], [4.25, 1], [5.5, 1], [8, 1]]);
-var b = Matrix.columnVector([4.5, 4.25, 5.5, 5.5]);
-var x = solve(A, b);
-var error = Matrix.sub(b, A.mmul(x)); // The error enables to evaluate the solution x found.
-
-// If A is non singular :
-var A = new Matrix([[1, 2, 3], [4, 5, 6], [7, 8, 9]]);
-var b = Matrix.columnVector([8, 20, 32]);
-var x = solve(A, b, (useSVD = true)); // there are many solutions. x can be [1, 2, 1].transpose(), or [1.33, 1.33, 1.33].transpose(), etc.
-var error = Matrix.sub(b, A.mmul(x)); // The error enables to evaluate the solution x found.
-
-//===============
-// Decompositions
-//===============
-
-// QR Decomposition
-
-var A = new Matrix([[2, 3, 5], [4, 1, 6], [1, 3, 0]]);
-var QR = new QrDecomposition(A);
-var Q = QR.orthogonalMatrix;
-var R = QR.upperTriangularMatrix;
-// So you have the QR decomposition. If you multiply Q by R, you'll see that A = Q.R, with Q orthogonal and R upper triangular
-
-// LU Decomposition
-
-var A = new Matrix([[2, 3, 5], [4, 1, 6], [1, 3, 0]]);
-var LU = new LuDecomposition(A);
-var L = LU.lowerTriangularMatrix;
-var U = LU.upperTriangularMatrix;
-var P = LU.pivotPermutationVector;
-// So you have the LU decomposition. P includes the permutation of the matrix. Here P = [1, 2, 0], i.e the first row of LU is the second row of A, the second row of LU is the third row of A and the third row of LU is the first row of A.
-
-// Cholesky Decomposition
-
-var A = new Matrix([[2, 3, 5], [4, 1, 6], [1, 3, 0]]);
-var cholesky = new CholeskyDecomposition(A);
-var L = cholesky.lowerTriangularMatrix;
-
-// Eigenvalues & eigenvectors
-
-var A = new Matrix([[2, 3, 5], [4, 1, 6], [1, 3, 0]]);
-var e = new EigenvalueDecomposition(A);
-var real = e.realEigenvalues;
-var imaginary = e.imaginaryEigenvalues;
-var vectors = e.eigenvectorMatrix;
-
-//=======
-// Others
-//=======
-
-// Linear dependencies
-var A = new Matrix([
-  [2, 0, 0, 1],
-  [0, 1, 6, 0],
-  [0, 3, 0, 1],
-  [0, 0, 1, 0],
-  [0, 1, 2, 0],
-]);
-var dependencies = linearDependencies(A); // dependencies is a matrix with the dependencies of the rows. When we look row by row, we see that the first row is [0, 0, 0, 0, 0], so it means that the first row is independent, and the second row is [ 0, 0, 0, 4, 1 ], i.e the second row = 4 times the 4th row + the 5th row.
- -

License

-
-

MIT

-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/icenterbyoptions.html b/docs/interfaces/icenterbyoptions.html deleted file mode 100644 index 5e3df567..00000000 --- a/docs/interfaces/icenterbyoptions.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - ICenterByOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface ICenterByOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - ICenterByOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional center

-
center: number[]
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/icenteroptions.html b/docs/interfaces/icenteroptions.html deleted file mode 100644 index 31517f3d..00000000 --- a/docs/interfaces/icenteroptions.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - ICenterOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface ICenterOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - ICenterOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional center

-
center: number
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/icorrelationoptions.html b/docs/interfaces/icorrelationoptions.html deleted file mode 100644 index 068ebbdd..00000000 --- a/docs/interfaces/icorrelationoptions.html +++ /dev/null @@ -1,182 +0,0 @@ - - - - - - ICorrelationOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface ICorrelationOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - ICorrelationOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional center

-
center: boolean
- -
-
-
default
-

true

-
-
-
-
-
- -

Optional scale

-
scale: boolean
- -
-
-
default
-

true

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/icovarianceoptions.html b/docs/interfaces/icovarianceoptions.html deleted file mode 100644 index 48f60c9e..00000000 --- a/docs/interfaces/icovarianceoptions.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - ICovarianceOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface ICovarianceOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - ICovarianceOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional center

-
center: boolean
- -
-
-
default
-

true

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/ievdoptions.html b/docs/interfaces/ievdoptions.html deleted file mode 100644 index d4424a7b..00000000 --- a/docs/interfaces/ievdoptions.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - IEVDOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IEVDOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IEVDOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional assumeSymmetric

-
assumeSymmetric: boolean
- -
-
-
default
-

false

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/ilineardependenciesoptions.html b/docs/interfaces/ilineardependenciesoptions.html deleted file mode 100644 index de4710c8..00000000 --- a/docs/interfaces/ilineardependenciesoptions.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - ILinearDependenciesOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface ILinearDependenciesOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - ILinearDependenciesOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional thresholdError

-
thresholdError: number
- -
-
-

If the error is inferior to that threshold, the linear combination found is accepted and the row is dependent from other rows.

-
-
-
default
-

10e-10

-
-
-
-
-
- -

Optional thresholdValue

-
thresholdValue: number
- -
-
-

If an absolute value is inferior to this threshold, it will equals zero.

-
-
-
default
-

10e-10

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/inipalsoptions.html b/docs/interfaces/inipalsoptions.html deleted file mode 100644 index e3d49773..00000000 --- a/docs/interfaces/inipalsoptions.html +++ /dev/null @@ -1,207 +0,0 @@ - - - - - - INipalsOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface INipalsOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - INipalsOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional Y

-
Y: MaybeMatrix | number[]
- -
-
-

A column vector of length X.rows that contains known labels for supervised PLS.

-
-
-
-
- -

Optional maxIterations

-
maxIterations: boolean
- -
-
-

The maximum number of allowed iterations before beraking the loop if convergence is not achieved.

-
-
-
default
-

1000

-
-
-
-
-
- -

Optional terminationCriteria

-
terminationCriteria: number
- -
-
-

Termination criteria

-
-
-
default
-

1e-10

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/irandomintoptions.html b/docs/interfaces/irandomintoptions.html deleted file mode 100644 index b6c4608c..00000000 --- a/docs/interfaces/irandomintoptions.html +++ /dev/null @@ -1,227 +0,0 @@ - - - - - - IRandomIntOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IRandomIntOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IRandomIntOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

max

-
max: number
- -
-
-

Maximum value.

-
-
-
default
-

1000

-
-
-
-
-
- -

min

-
min: number
- -
-
-

Minimum value.

-
-
-
default
-

0

-
-
-
-
-
- -

random

-
random: () => number
- -
-
-

Random number generator.

-
-
-
default
-

Math.random

-
-
-
-
-

Type declaration

-
    -
  • -
      -
    • (): number
    • -
    -
      -
    • -

      Returns number

      -
    • -
    -
  • -
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/irandomoptions.html b/docs/interfaces/irandomoptions.html deleted file mode 100644 index dee5d754..00000000 --- a/docs/interfaces/irandomoptions.html +++ /dev/null @@ -1,179 +0,0 @@ - - - - - - IRandomOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IRandomOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IRandomOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

random

-
random: () => number
- -
-
-

Random number generator.

-
-
-
default
-

Math.random

-
-
-
-
-

Type declaration

-
    -
  • -
      -
    • (): number
    • -
    -
      -
    • -

      Returns number

      -
    • -
    -
  • -
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/irepeatoptions.html b/docs/interfaces/irepeatoptions.html deleted file mode 100644 index a4b2cee2..00000000 --- a/docs/interfaces/irepeatoptions.html +++ /dev/null @@ -1,188 +0,0 @@ - - - - - - IRepeatOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IRepeatOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IRepeatOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional columns

-
columns: number
- -
-
-

Number of times the columns should be repeated.

-
-
-
default
-

1

-
-
-
-
-
- -

Optional rows

-
rows: number
- -
-
-

Number of times the rows should be repeated.

-
-
-
default
-

1

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/iscalebyoptions.html b/docs/interfaces/iscalebyoptions.html deleted file mode 100644 index 817fa2bc..00000000 --- a/docs/interfaces/iscalebyoptions.html +++ /dev/null @@ -1,154 +0,0 @@ - - - - - - IScaleByOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IScaleByOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IScaleByOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional scale

-
scale: number[]
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/iscaleoptions.html b/docs/interfaces/iscaleoptions.html deleted file mode 100644 index 04a77ed0..00000000 --- a/docs/interfaces/iscaleoptions.html +++ /dev/null @@ -1,202 +0,0 @@ - - - - - - IScaleOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IScaleOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IScaleOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional max

-
max: number
- -
-
-

Maximum scaled value.

-
-
-
default
-

1

-
-
-
-
-
- -

Optional min

-
min: number
- -
-
-

Minimum scaled value.

-
-
-
default
-

0

-
-
-
-
-
- -

Optional scale

-
scale: number
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/isvdoptions.html b/docs/interfaces/isvdoptions.html deleted file mode 100644 index 36a87979..00000000 --- a/docs/interfaces/isvdoptions.html +++ /dev/null @@ -1,203 +0,0 @@ - - - - - - ISVDOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface ISVDOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - ISVDOptions -
  • -
-
-
-

Index

-
- -
-
-
-

Properties

-
- -

Optional autoTranspose

-
autoTranspose: boolean
- -
-
-
default
-

false

-
-
-
-
-
- -

Optional computeLeftSingularVectors

-
computeLeftSingularVectors: boolean
- -
-
-
default
-

true

-
-
-
-
-
- -

Optional computeRightSingularVectors

-
computeRightSingularVectors: boolean
- -
-
-
default
-

true

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/itostringoptions.html b/docs/interfaces/itostringoptions.html deleted file mode 100644 index 9fd5a29f..00000000 --- a/docs/interfaces/itostringoptions.html +++ /dev/null @@ -1,212 +0,0 @@ - - - - - - IToStringOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IToStringOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IToStringOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional maxColumns

-
maxColumns: number
- -
-
-

Maximum number of printed columns.

-
-
-
default
-

10

-
-
-
-
-
- -

Optional maxNumSize

-
maxNumSize: number
- -
-
-

Maximum size (number of characters) of printed numbers.

-
-
-
default
-

8

-
-
-
-
-
- -

Optional maxRows

-
maxRows: number
- -
-
-

Maximum number of printed rows.

-
-
-
default
-

15

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/ivariancebyoptions.html b/docs/interfaces/ivariancebyoptions.html deleted file mode 100644 index df96bddf..00000000 --- a/docs/interfaces/ivariancebyoptions.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - IVarianceByOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IVarianceByOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IVarianceByOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional mean

-
mean: number[]
- -
-
- -

Optional unbiased

-
unbiased: boolean
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/ivarianceoptions.html b/docs/interfaces/ivarianceoptions.html deleted file mode 100644 index 9b2eaaf0..00000000 --- a/docs/interfaces/ivarianceoptions.html +++ /dev/null @@ -1,168 +0,0 @@ - - - - - - IVarianceOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IVarianceOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IVarianceOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional mean

-
mean: number
- -
-
- -

Optional unbiased

-
unbiased: boolean
- -
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/docs/interfaces/iwrap1doptions.html b/docs/interfaces/iwrap1doptions.html deleted file mode 100644 index 28874fdd..00000000 --- a/docs/interfaces/iwrap1doptions.html +++ /dev/null @@ -1,161 +0,0 @@ - - - - - - IWrap1DOptions | ml-matrix - - - - - -
-
-
-
- -
-
- Options -
-
- All -
    -
  • Public
  • -
  • Public/Protected
  • -
  • All
  • -
-
- - - - -
-
- Menu -
-
-
-
-
-
- -

Interface IWrap1DOptions

-
-
-
-
-
-
-
-

Hierarchy

-
    -
  • - IWrap1DOptions -
  • -
-
-
-

Index

-
-
-
-

Properties

- -
-
-
-
-
-

Properties

-
- -

Optional rows

-
rows: number
- -
-
-
default:
-

1

-
-
-
-
-
-
- -
-
-
-
-

Legend

-
-
    -
  • Constructor
  • -
  • Property
  • -
  • Method
  • -
-
    -
  • Inherited property
  • -
  • Inherited method
  • -
-
    -
  • Property
  • -
-
    -
  • Static method
  • -
-
-
-
-
- - - \ No newline at end of file diff --git a/package.json b/package.json index 03a592fa..cbb96430 100644 --- a/package.json +++ b/package.json @@ -15,7 +15,6 @@ "src" ], "scripts": { - "build-docs": "typedoc --out docs --name \"ml-matrix\" --mode file --includeDeclarations --excludeExternals --hideGenerator --excludePrivate --moduleResolution node matrix.d.ts", "compile": "rollup -c", "eslint": "eslint benchmark src testUtils.js", "eslint-fix": "npm run eslint -- --fix", @@ -56,25 +55,23 @@ "homepage": "https://github.com/mljs/matrix", "devDependencies": { "@babel/plugin-transform-modules-commonjs": "^7.10.4", - "@rollup/plugin-commonjs": "^14.0.0", - "@rollup/plugin-node-resolve": "^8.4.0", + "@rollup/plugin-commonjs": "^15.1.0", + "@rollup/plugin-node-resolve": "^9.0.0", "benchmark": "^2.1.4", - "csv-parse": "^4.11.1", - "eslint": "^7.10.0", + "csv-parse": "^4.12.0", + "eslint": "^7.11.0", "eslint-config-cheminfo": "^5.2.2", - "jest": "^26.1.0", + "jest": "^26.5.2", "jest-matcher-deep-close-to": "^2.0.1", - "mathjs": "^7.1.0", + "mathjs": "^7.5.1", "ml-dataset-iris": "^1.1.1", "numeric": "^1.2.6", - "prettier": "^2.0.5", + "prettier": "^2.1.2", "pretty-hrtime": "^1.0.3", - "rollup": "^2.23.0", - "rollup-plugin-terser": "^6.1.0", - "typedoc": "^0.17.8", - "typescript": "^3.9.7" + "rollup": "^2.29.0", + "rollup-plugin-terser": "^7.0.2" }, "dependencies": { - "ml-array-rescale": "^1.3.1" + "ml-array-rescale": "^1.3.2" } } diff --git a/src/matrix.js b/src/matrix.js index a675710c..2eb59732 100644 --- a/src/matrix.js +++ b/src/matrix.js @@ -1427,6 +1427,7 @@ export default class Matrix extends AbstractMatrix { constructor(nRows, nColumns) { super(); if (Matrix.isMatrix(nRows)) { + // eslint-disable-next-line no-constructor-return return nRows.clone(); } else if (Number.isInteger(nRows) && nRows > 0) { // Create an empty matrix @@ -1462,7 +1463,6 @@ export default class Matrix extends AbstractMatrix { } this.rows = nRows; this.columns = nColumns; - return this; } set(rowIndex, columnIndex, value) {