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

cholesky

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cholesky

standalone cholesky decomposition of a square matrix

  • 1.2.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

cholesky

standalone cholesky decomposition of a square matrix

Take an native javascript array representing a square matrix and returns the lower triangular decomposition. The row-major convention is used: mat[row][col]

Unlike other implementations, this module only uses native Arrays and does not modify any prototypes.

ExampleAPILicense

Example

cho = require('cholesky')

var tri = cho([[4, 12, -16], [12, 37, -43], [-16, -43, 98]])
console.log(tri[0]) // [2]
console.log(tri[1]) // [6, 1]
console.log(tri[2]) // [-8, 5, 3]

API

cholesky(array) => array

The module exports a single function that takes a row-major matrix in the form mat[row][col] and returns a new lower triangular matrix in the form [[a], [b,c], [d,e,f], ...]

License

Released under the MIT License

Keywords

FAQs

Package last updated on 05 Dec 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc