scijs/ndarray-blas-dger

Name: ndarray-blas-dger

Owner: scijs

Description: BLAS Level 2 DEGR for ndarrays

Created: 2015-06-15 20:30:41.0

Updated: 2018-02-20 12:56:25.0

Pushed: 2015-06-16 17:43:03.0

Homepage: null

Size: 92

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

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
dger = require('ndarray-blas-dger')

A = ndarray([1,2,3,4,5,6], [2,2]),
x = ndarray([1,2]),
y = ndarray([3,4,5])

( -4, x, y, A );

esult: A =  -11.000  -22.000
            -13.000  -28.000
            -15.000  -34.000
Credits

(c) 2015 Jalmari Raippalinna. MIT License


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.