Skip to content

Commit

Permalink
Prepare release.
Browse files Browse the repository at this point in the history
  * Re-export dependencies.
  * Add 5- and 6-dimensional aliases.
  • Loading branch information
n3vu0r committed Feb 27, 2024
1 parent aa2cbc9 commit 32f062e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nalgebra-spacetime"
version = "0.3.0"
version = "0.4.0"
authors = ["Rouven Spreckels <[email protected]>"]
edition = "2021"
description = "Spacetime Extension for nalgebra"
Expand Down Expand Up @@ -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 }
3 changes: 3 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
16 changes: 15 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -833,6 +837,12 @@ pub type Frame3<N> = FrameN<N, U3>;
/// Inertial frame of reference in $4$-dimensional Lorentzian space
/// $\R^{-,+} = \R^{1,3}$.
pub type Frame4<N> = FrameN<N, U4>;
/// Inertial frame of reference in $5$-dimensional Lorentzian space
/// $\R^{-,+} = \R^{1,4}$.
pub type Frame5<N> = FrameN<N, U5>;
/// Inertial frame of reference in $6$-dimensional Lorentzian space
/// $\R^{-,+} = \R^{1,5}$.
pub type Frame6<N> = FrameN<N, U6>;

/// Inertial frame of reference in $n$-dimensional Lorentzian space $\R^{-,+} = \R^{1,n-1}$.
///
Expand Down Expand Up @@ -1445,3 +1455,7 @@ pub type Momentum2<N> = MomentumN<N, U2>;
pub type Momentum3<N> = MomentumN<N, U3>;
/// Momentum in $4$-dimensional Lorentzian space $\R^{-,+} = \R^{1,3}$.
pub type Momentum4<N> = MomentumN<N, U4>;
/// Momentum in $5$-dimensional Lorentzian space $\R^{-,+} = \R^{1,4}$.
pub type Momentum5<N> = MomentumN<N, U5>;
/// Momentum in $6$-dimensional Lorentzian space $\R^{-,+} = \R^{1,5}$.
pub type Momentum6<N> = MomentumN<N, U6>;

0 comments on commit 32f062e

Please sign in to comment.