householder-matrix
TypeScript icon, indicating that this package has built-in type declarations

1.1.2 • Public • Published

Description

Any rectangular matrix A of type M x N can be decomposed into a product of an orthogonal matrix Q and an upper (right) triangular matrix R, as described in the QR decomposition, in other words it is a linear transformation that describes a reflection with respect to a plane or hyperplane that contains the origin.

Install

npm i householder-matrix

Usage

import qr_decomposition from 'householder matrix';

const { Q, R } = qr_decomposition([
  [-1, -1, 1],
  [1, 3, 3],
  [-1, -1, 5],
]); 

Pseudocode

Alt text

How to use

# Clone this repository
$ https://github.com/joaovitor32/householder-matrix

# Go into the repository
$ cd householder-matrix

# Install dependencies
$ npm install

# Run tests
$ npm run test

# Run server
$ npm run dev:server

Based mainly on https://github.com/rfabbri/aln-book lectures

References:

Readme

Keywords

none

Package Sidebar

Install

npm i householder-matrix

Weekly Downloads

1

Version

1.1.2

License

ISC

Unpacked Size

9.82 kB

Total Files

27

Last publish

Collaborators

  • joaovitor32