Skip to content

scijs/ndarray-blas-dger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

BLAS Level 2 DEGR for ndarrays

Resources

Stars

Watchers

Forks

Packages

No packages published