ndarray-blas-dger
v1.0.2
Published
BLAS Level 2 DGER for ndarrays
Downloads
13
Maintainers
Readme
ndarray-blas-dger
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