Skip to content

atlassubbed/atlas-dot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages