Socket
Socket
Sign inDemoInstall

reduce-simplicial-complex

Package Overview
Dependencies
3
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    reduce-simplicial-complex

Cancels oppositely oriented cells in a simplicial complex


Version published
Weekly downloads
82K
increased by13.92%
Maintainers
1
Install size
19.6 kB
Created
Weekly downloads
 

Readme

Source

reduce-simplicial-complex

Given an oriented simplicial complex, this module computes a minimal basis for the complex in the integer homology sense. That is, it cancels out all pairs of equivalent cells which have opposite orientation.

Example

var reduceCells = require('reduce-simplicial-complex')

var cells = [
  [1, 2, 3],
  [2, 1, 3],
  [3, 2, 1],
  [4, 5, 6],
  [7, 8]
]

console.log(reduceCells(cells))

Install

npm i reduce-simplicial-complex

API

require('reduce-simplicial-complex')(cells)

Cancels all pairs of oppositely oriented cells

  • cells is an array of cells

Returns A collapsed list of cells

Note This is done in place. If you need a copy, you should make a copy first, for example using cells.slice().

License

(c) 2015 Mikola Lysenko. MIT License

Keywords

FAQs

Last updated on 20 Jun 2015

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc