Thanks to visit codestin.com
Credit goes to docs.rs

Skip to main content

Crate use_complex

Crate use_complex 

Source
Expand description

§use-geometric-complex

Geometric complex primitives for the RustUse geometry workspace.

use-geometric-complex is about geometric complexes, cell complexes, and simplicial complexes. It publishes with the Rust library name use_complex. The use-complex package name remains with the sibling git_local/use-math/crates/use-complex complex-number crate.

§Example

use use_cell::Cell;
use use_complex::{CellComplex, GeometricComplex, SimplicialComplex};

let cell_complex = CellComplex::new(vec![Cell::new(2, 3).unwrap()]);
let simplicial = SimplicialComplex::new(vec![3]).unwrap();

assert_eq!(cell_complex.cell_count(), 1);
assert_eq!(GeometricComplex::new(2, 1).unwrap().dimension(), 2);
assert_eq!(simplicial.simplex_count(), 1);

Structs§

CellComplex
A collection of geometric cells.
GeometricComplex
A general geometric complex count summary.
SimplicialComplex
A simplicial complex represented by simplex dimensions.