ndarray-blas-dger

1.0.2 • Public • Published

ndarray-blas-dger

npm version Dependency Status

BLAS Level 2 DGER for ndarrays

Usage

dger( alpha, A, x, y )

Performs the rank 1 operation A <- alpha * x * yT + A for scalar alpha, m element vector x, n element vector y and m x n element matrix A.

Result is overwritten in matrix A. All other inputs are unchanged.

Example

var dger = require('ndarray-blas-dger')
 
var A = ndarray([1,2,3,4,5,6], [2,2]),
    x = ndarray([1,2]),
    y = ndarray([3,4,5])
 
dger( -4, x, y, A );
 
// Result: A =  -11.000  -22.000
//              -13.000  -28.000
//              -15.000  -34.000

Credits

(c) 2015 Jalmari Raippalinna. MIT License

Package Sidebar

Install

npm i ndarray-blas-dger

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • rreusser