dexterior_core/
lib.rs

1//! This is the core crate containing most of `dexterior`'s functionality
2//! (specifically, everything except the visuals).
3//! See the `dexterior` crate's documentation for an in-depth introduction.
4
5#![warn(missing_docs)]
6
7pub mod mesh;
8#[doc(inline)]
9pub use mesh::{
10    Dual, DualCellIter, DualCellView, Primal, SimplexIter, SimplexView, SimplicialMesh, Subset,
11};
12
13pub mod cochain;
14#[doc(inline)]
15pub use cochain::Cochain;
16
17pub mod operator;
18#[doc(inline)]
19pub use operator::{ComposedOperator, ExteriorDerivative, HodgeStar, Op, Operator};
20
21pub mod gmsh;
22
23pub mod interpolate;
24
25pub mod quadrature;
26
27pub(crate) mod permutation;
28
29// nalgebra re-exports of common types for convenience
30
31pub use nalgebra as na;
32/// Type alias for a 2D `nalgebra` vector.
33pub type Vec2 = na::Vector2<f64>;
34/// Type alias for a 2D `nalgebra` unit vector.
35pub type UnitVec2 = na::Unit<Vec2>;
36/// Type alias for a 3D `nalgebra` vector.
37pub type Vec3 = na::Vector3<f64>;
38/// Type alias for a 3D `nalgebra` unit vector.
39pub type UnitVec3 = na::Unit<Vec3>;
40/// Type alias for a general `nalgebra` unit vector.
41pub type Unit<T> = na::Unit<T>;