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) basic linear algebra subprograms (BLAS).
import blas from 'https://cdn.jsdelivr.net/gh/stdlib-js/blas-base@deno/mod.js';
You can also import the following named exports from the package:
import { assert, ccopy, cscal, cswap, dasum, daxpy, dcabs1, dcopy, ddot, diagonalTypeEnum2Str, diagonalTypeResolveEnum, diagonalTypeResolveStr, diagonalTypeStr2Enum, diagonalTypes, dnrm2, drotg, dscal, dsdot, dswap, gasum, gaxpy, gcopy, gdot, gnrm2, gscal, gswap, idamax, isamax, layoutEnum2Str, layoutResolveEnum, layoutResolveStr, layoutStr2Enum, layouts, matrixTriangleEnum2Str, matrixTriangleResolveEnum, matrixTriangleResolveStr, matrixTriangleStr2Enum, matrixTriangles, operationSideEnum2Str, operationSideResolveEnum, operationSideResolveStr, operationSideStr2Enum, operationSides, sasum, saxpy, scabs1, scopy, sdot, sdsdot, snrm2, srotg, sscal, sswap, transposeOperationEnum2Str, transposeOperationResolveEnum, transposeOperationResolveStr, transposeOperationStr2Enum, transposeOperations, zcopy, zswap } from 'https://cdn.jsdelivr.net/gh/stdlib-js/blas-base@deno/mod.js';
Namespace for "base" (i.e., lower-level) basic linear algebra subprograms (BLAS).
var o = blas;
// returns {...}
ccopy( N, x, strideX, y, strideY )
: copy values from one complex single-precision floating-point vector to another complex single-precision floating-point vector.cscal( N, ca, cx, strideX )
: scales a single-precision complex floating-point vector by a single-precision complex floating-point constant.cswap( N, x, strideX, y, strideY )
: interchange two complex single-precision floating-point vectors.dasum( N, x, stride )
: compute the sum of absolute values (L1 norm).daxpy( N, alpha, x, strideX, y, strideY )
: multiply a vectorx
by a constantalpha
and add the result toy
.dcopy( N, x, strideX, y, strideY )
: copy values fromx
intoy
.ddot( N, x, strideX, y, strideY )
: calculate the dot product of two double-precision floating-point vectors.dnrm2( N, x, stride )
: calculate the L2-norm of a double-precision floating-point vector.drotg( a, b )
: construct a Givens plane rotation.dscal( N, alpha, x, stride )
: multiply a double-precision floating-point vectorx
by a constantalpha
.dsdot( N, x, strideX, y, strideY )
: calculate the dot product with extended accumulation and result of two single-precision floating-point vectors.dswap( N, x, strideX, y, strideY )
: interchange two double-precision floating-point vectors.gasum( N, x, stride )
: compute the sum of absolute values (L1 norm).gaxpy( N, alpha, x, strideX, y, strideY )
: multiplyx
by a constantalpha
and add the result toy
.gcopy( N, x, strideX, y, strideY )
: copy values fromx
intoy
.gdot( N, x, strideX, y, strideY )
: calculate the dot product of two vectors.gnrm2( N, x, stride )
: calculate the L2-norm of a vector.gscal( N, alpha, x, stride )
: multiply a vectorx
by a constantalpha
.gswap( N, x, strideX, y, strideY )
: interchange two vectors.sasum( N, x, stride )
: compute the sum of absolute values (L1 norm).saxpy( N, alpha, x, strideX, y, strideY )
: multiply a vectorx
by a constantalpha
and add the result toy
.scopy( N, x, strideX, y, strideY )
: copy values fromx
intoy
.sdot( N, x, strideX, y, strideY )
: calculate the dot product of two single-precision floating-point vectors.sdsdot( N, scalar, x, strideX, y, strideY )
: calculate the dot product of two single-precision floating-point vectors with extended accumulation.snrm2( N, x, stride )
: calculate the L2-norm of a single-precision floating-point vector.srotg( a, b )
: construct a Givens plane rotation.sscal( N, alpha, x, stride )
: multiply a single-precision floating-point vectorx
by a constantalpha
.sswap( N, x, strideX, y, strideY )
: interchange two single-precision floating-point vectors.zcopy( N, x, strideX, y, strideY )
: copy values from one complex double-precision floating-point vector to another complex double-precision floating-point vector.zswap( N, x, strideX, y, strideY )
: interchange two complex double-precision floating-point vectors.
idamax( N, x, strideX )
: find the index of the first element having the maximum absolute value.isamax( N, x, strideX )
: find the index of the first element having the maximum absolute value.
import objectKeys from 'https://cdn.jsdelivr.net/gh/stdlib-js/utils-keys@deno/mod.js';
import blas from 'https://cdn.jsdelivr.net/gh/stdlib-js/blas-base@deno/mod.js';
console.log( objectKeys( blas ) );
This package is part of stdlib, a standard library 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-2024. The Stdlib Authors.