atlas-dot

1.0.1 • Public • Published

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.

/atlas-dot/

    Package Sidebar

    Install

    npm i atlas-dot

    Weekly Downloads

    1

    Version

    1.0.1

    License

    Apache-2.0

    Unpacked Size

    3.17 kB

    Total Files

    6

    Last publish

    Collaborators

    • atlassubbed