Socket
Book a DemoInstallSign in
Socket

ndarray-matrix-vector-product

Package Overview
Dependencies
Maintainers
6
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ndarray-matrix-vector-product

Dense matrix-vector multiplication

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
6
Created
Source

ndarray-matrix-vector-product

Dense matrix-vector multiply for ndarrays.

build status

Example

var mvp = require("ndarray-matrix-vector-product")
var zeros = require("zeros")

//Initialize some vectors and a matrix
var x = zeros([16])
var M = zeros([16, 8])
var y = zeros([8])

M.set(1,2,  10.0)
y.set(2, 3)

//Multiply y by M storing result in x
mvp(x, M, y)

Install

Install using npm:

npm install ndarray-matrix-vector-product

API

require("ndarray-matrix-vector-product")(out, M, y)

Multiplies a matrix by a vector

  • out is an 1D ndarray with shape [n]
  • M is a 2D ndarray with shape [n,m]
  • v is a 1D ndarray with shape [m]

License

(c) 2013 Mikola Lysenko. MIT License

Keywords

scijs

FAQs

Package last updated on 10 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts