Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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
  • npm
  • Socket score

Version published
Maintainers
1
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

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc