Latest Threat Research:Malicious dYdX Packages Published to npm and PyPI After Maintainer Compromise.Details
Socket
Book a DemoInstallSign in
Socket

ndarray-matrix-vector-product

Package Overview
Dependencies
Maintainers
1
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

Source
npmnpm
Version
0.0.0
Version published
Weekly downloads
2
-33.33%
Maintainers
1
Weekly downloads
 
Created
Source

ndarray-matrix-vector-product

Dense matrix-vector multiply for ndarrays.

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

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]

Credits

(c) 2013 Mikola Lysenko. MIT License

Keywords

ndarray

FAQs

Package last updated on 05 Nov 2013

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