Socket
Book a DemoInstallSign in
Socket

atlas-dot

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

atlas-dot

Calculates the inner product between two sets of data points.

1.0.1
latest
Source
npmnpm
Version published
Weekly downloads
53
381.82%
Maintainers
1
Weekly downloads
 
Created
Source

atlas-dot

Calculates the inner product between two sets of data points.

Travis

install

npm install --save atlas-dot

why

Breaking up atlas-dataset into standalone functions. This module contains the dot product:

U dot V = u_i * v_i

examples

v · v

const dot = require("atlas-dot")
console.log(dot([1,2]))
// 5 

u · v

...
console.log(dot([1,2], [3,4]))
// 11

caveats

Input checking is the responsibility of the caller. Make sure your arrays contain numbers and are of the same length.

Keywords

atlassubbed

FAQs

Package last updated on 15 Jul 2018

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.