About stdlib...
We believe in a future in which the web is a preferred environment for numerical computation. To help realize this future, we've built stdlib. stdlib is a standard library, with an emphasis on numerical and scientific computation, written in JavaScript (and C) for execution in browsers and in Node.js.
The library is fully decomposable, being architected in such a way that you can swap out and mix and match APIs and functionality to cater to your exact preferences and use cases.
When you use stdlib, you can be absolutely certain that you are using the most thorough, rigorous, well-written, studied, documented, tested, measured, and high-quality code out there.
To join us in bringing numerical computing to the web, get started by checking us out on GitHub, and please consider financially supporting stdlib. We greatly appreciate your continued support!
Base (i.e., lower-level) linear algebra package (LAPACK) routines.
npm install @stdlib/lapack-baseAlternatively,
- To load the package in a website via a
scripttag without installation and bundlers, use the ES Module available on theesmbranch (see README). - If you are using Deno, visit the
denobranch (see README for usage intructions). - For use in Observable, or in browser/node environments, use the Universal Module Definition (UMD) build available on the
umdbranch (see README).
The branches.md file summarizes the available branches and displays a diagram illustrating their relationships.
To view installation and usage instructions specific to each branch build, be sure to explicitly navigate to the respective README files on each branch, as linked to above.
var lapack = require( '@stdlib/lapack-base' );Namespace for "base" (i.e., lower-level) linear algebra package (LAPACK) routines.
var o = lapack;
// returns {...}The namespace contains the following:
clacgv( N, cx, strideCX ): conjugate each element in a single-precision complex floating-point vector.clacpy( order, uplo, M, N, A, LDA, B, LDB ): copy all or part of a matrixAto another matrixB.claset( order, uplo, M, N, alpha, beta, A, LDA ): set the off-diagonal elements and the diagonal elements of a single-precision complex floating-point matrix to specified values.claswp( N, A, LDA, k1, k2, IPIV, incx ): perform a series of row interchanges on an input matrix.crot( N, cx, strideCX, cy, strideCY, c, s ): apply a plane rotation with real cosine and complex sine to a pair of single-precision complex floating-point vectors.dgetrans( order, M, N, A, LDA, out, LDO ): convert a matrix from row-major layout to column-major layout or vice versa.dgttrf( N, DL, D, DU, DU2, IPIV ): compute anLUfactorization of a real tridiagonal matrixAusing elimination with partial pivoting and row interchanges.dlacpy( order, uplo, M, N, A, LDA, B, LDB ): copy all or part of a matrixAto another matrixB.dladiv( a, b, c, d, P, Q ): divide two double-precision complex floating-point numbers in real arithmetic.dlamch( cmach ): determine double-precision floating-point machine parameters.dlapy2( x, y ): LAPACK routine to calculatesqrt(x^2 + y^2)in a manner which doesn't cause unnecessary overflow.dlapy3( x, y, z ): LAPACK routine to calculatesqrt(x^2 + y^2 + z^2)in a manner which doesn't cause unnecessary overflow.dlarf1f( order, side, M, N, V, strideV, tau, C, LDC, work ): apply a real elementary reflectorH = I - tau * v * v^Tto a real M by N matrixC.dlaset( order, uplo, M, N, alpha, beta, A, LDA ): set the off-diagonal elements and the diagonal elements of a double-precision floating-point matrix to specified values.dlassq( N, X, strideX, scale, sumsq ): return an updated sum of squares represented in scaled form.dlaswp( N, A, LDA, k1, k2, IPIV, incx ): perform a series of row interchanges on an input matrix.dpttrf( N, D, E ): compute theL * D * L^Tfactorization of a real symmetric positive definite tridiagonal matrixA.iladlc( order, M, N, A, LDA ): find the index of the last non-zero column in a matrixA.iladlr( order, M, N, A, LDA ): find the index of the last non-zero row in a matrixA.sgetrans( order, M, N, A, LDA, out, LDO ): convert a matrix from row-major layout to column-major layout or vice versa.slacpy( order, uplo, M, N, A, LDA, B, LDB ): copy all or part of a matrixAto another matrixB.slaswp( N, A, LDA, k1, k2, IPIV, incx ): perform a series of row interchanges on an input matrix.spttrf( N, D, E ): compute theL * D * L^Tfactorization of a real symmetric positive definite tridiagonal matrixA.zlacgv( N, zx, strideZX ): conjugate each element in a double-precision complex floating-point vector.zlacpy( order, uplo, M, N, A, LDA, B, LDB ): copy all or part of a matrixAto another matrixB.zlaset( order, uplo, M, N, alpha, beta, A, LDA ): set the off-diagonal elements and the diagonal elements of a double-precision complex floating-point matrix to specified values.zlaswp( N, A, LDA, k1, k2, IPIV, incx ): perform a series of row interchanges on an input matrix.zrot( N, zx, strideX, zy, strideY, c, s ): apply a plane rotation with real cosine and complex sine to a pair of double-precision complex floating-point vectors.
var objectKeys = require( '@stdlib/utils-keys' );
var lapack = require( '@stdlib/lapack-base' );
console.log( objectKeys( lapack ) );This package is part of stdlib, a standard library for JavaScript and Node.js, with an emphasis on numerical and scientific computing. The library provides a collection of robust, high performance libraries for mathematics, statistics, streams, utilities, and more.
For more information on the project, filing bug reports and feature requests, and guidance on how to develop stdlib, see the main project repository.
See LICENSE.
Copyright © 2016-2026. The Stdlib Authors.