diff --git a/Cargo.toml b/Cargo.toml index 696bfe6..a998ee6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nalgebra-spacetime" -version = "0.3.0" +version = "0.4.0" authors = ["Rouven Spreckels "] edition = "2021" description = "Spacetime Extension for nalgebra" @@ -32,6 +32,6 @@ include = [ rustdoc-args = [ "--html-in-header", "katex.html" ] [dependencies] +approx = { version = "0.5.1", default-features = false } nalgebra = { version = "0.32.4", features = ["rand"] } num-traits = "0.2.18" -approx = { version = "0.5.1", default-features = false } diff --git a/RELEASES.md b/RELEASES.md index 02701c7..6ce9cc4 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -2,6 +2,9 @@ * Make Wigner rotation n-dimensional. * Negate `FrameN` axis instead of beta. + * Escape prime symbol. + * Re-export dependencies. + * Add 5- and 6-dimensional aliases. # Version 0.3.0 (2024-02-21) diff --git a/src/lib.rs b/src/lib.rs index fe4e1bd..4053201 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -27,10 +27,14 @@ #![allow(clippy::doc_markdown)] #![allow(clippy::type_complexity)] +pub use approx; +pub use nalgebra; +pub use num_traits; + use approx::{abs_diff_eq, AbsDiffEq}; use nalgebra::{ base::allocator::Allocator, - base::dimension::{U1, U2, U3, U4}, + base::dimension::{U1, U2, U3, U4, U5, U6}, constraint::{ AreMultipliable, DimEq, SameDimension, SameNumberOfColumns, SameNumberOfRows, ShapeConstraint, @@ -833,6 +837,12 @@ pub type Frame3 = FrameN; /// Inertial frame of reference in $4$-dimensional Lorentzian space /// $\R^{-,+} = \R^{1,3}$. pub type Frame4 = FrameN; +/// Inertial frame of reference in $5$-dimensional Lorentzian space +/// $\R^{-,+} = \R^{1,4}$. +pub type Frame5 = FrameN; +/// Inertial frame of reference in $6$-dimensional Lorentzian space +/// $\R^{-,+} = \R^{1,5}$. +pub type Frame6 = FrameN; /// Inertial frame of reference in $n$-dimensional Lorentzian space $\R^{-,+} = \R^{1,n-1}$. /// @@ -1445,3 +1455,7 @@ pub type Momentum2 = MomentumN; pub type Momentum3 = MomentumN; /// Momentum in $4$-dimensional Lorentzian space $\R^{-,+} = \R^{1,3}$. pub type Momentum4 = MomentumN; +/// Momentum in $5$-dimensional Lorentzian space $\R^{-,+} = \R^{1,4}$. +pub type Momentum5 = MomentumN; +/// Momentum in $6$-dimensional Lorentzian space $\R^{-,+} = \R^{1,5}$. +pub type Momentum6 = MomentumN;