Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mikolalysenko/simplicial-cartesian-product
Cartesian products of simplicial complexes
https://github.com/mikolalysenko/simplicial-cartesian-product
Last synced: 7 days ago
JSON representation
Cartesian products of simplicial complexes
- Host: GitHub
- URL: https://github.com/mikolalysenko/simplicial-cartesian-product
- Owner: mikolalysenko
- Created: 2013-04-04T20:39:15.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2016-04-05T01:08:06.000Z (over 8 years ago)
- Last Synced: 2024-12-16T22:35:39.780Z (10 days ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# simplicial-cartesian-product
Constructs the [cartesian product of two simplicial complexes](http://en.wikipedia.org/wiki/Cartesian_product_of_graphs). (Not to be confused with the tensor/categorical product.)# Install
npm install simplicial-cartesian-product
# Example```javascript
var prod = require("simplicial-cartesian-product")
console.log(prod([[0,1]], [[0,1]]))
```# `require("simplicial-cartesian-product")(a, b)`
Given a pair of simplicial complexes, produces their cartesian product.* `a` and `b` are [simplicial complexes](https://github.com/mikolalysenko/simplicial-complex)
**Returns:** The cartesian product of `a` and `b`. New vertex coordinates are of the form `a_index + b_index * countVertices(a)`
Credits
=======
(c) 2013 Mikola Lysenko. MIT License