Skip to content
A friendly and intuitive math library for p5.js
JavaScript TypeScript HTML
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist
examples
licenses
src
test
.all-contributorsrc
.eslintrc.js
.gitignore
.travis.yml
CODE_OF_CONDUCT.md
CONTRIBUTING.md
LICENSE
README.md
numero.png
package-lock.json
package.json
tsconfig.json
webpack.config.js

README.md

número

número

A friendly and intuitive math library for p5.js

All Contributors

Build Status

This project aims to bring the mathematical chops of NumPy to the p5.js ecosystem. A few guiding principles are:

  • Focus on beginners.
  • Complement core p5.js math functions and play nicely with p5.Vector.
  • Make the API familiar (e.g., createTensor()).
  • Let ml5.js handle machine learning.
  • Encourage all kinds of contributions.

The initial plan is to develop the library in TypeScript using TensorFlow.js as a linear algebra engine.

Why though?

Excellent libraries like math.js and p5.dimensions already exist. The idea is to study the masters while creating something new: a production grade library for numeric computation that beginners can grow into over time.

Also, math + code = awesome :)

Usage

const b = num.tidy(() => {
    const a = createTensor([[1, 2], [3, 4]]);
    const x = createTensor([5, 6]);
    return a.dot(x);
});

print(b.toString());

Contributing

See CONTRIBUTING.

Contributors

Thanks goes to these wonderful people (emoji key):

Ashneel Das
Ashneel Das

💻 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

You can’t perform that action at this time.