Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

triangulate-hypercube

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

triangulate-hypercube

Triangulates a hypercube into simplices

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22K
increased by5.61%
Maintainers
1
Weekly downloads
 
Created
Source

triangulate-hypercube

Triangulates an n-dimensional hypercube into a collection of simplices.

Note: In high dimensions, this triangulation is not very efficient. Pull requests welcome.

Example

var triangulateCube = require("triangulate-hypercube")

console.log(triangulateCube(2))

Output:

[ [ 3, 2, 0 ], [ 0, 1, 3 ] ]

Install

npm install triangulate-hypercube

API

require("triangulate-hypercube")(dimension)

Computes a decomposition of an n-dimensional hypercube into simplices using a naive permutation based algorithm.

  • dimension is an integer representing the dimension of the hypercube to triangulate

Returns A list of n dimensional simplices which subdivide the cube.

Credits

(c) 2014 Mikola Lysenko. MIT License

Keywords

FAQs

Package last updated on 18 Sep 2014

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