Skip to main content

Sl

Struct Sl 

Source
pub struct Sl<V: Tensor<F: CField>, const N: usize>(/* private fields */);
Expand description

The special linear group SL(V) — automorphisms of V with determinant one.

The determinant-one invariant is maintained by construction: there is no raw constructor. Values arise only from the group operations (the identity, products, inverses) and from exp of the traceless SlAlgebra — all of which preserve det = 1 (det(AB) = det(A)det(B), det(exp X) = e^{tr X} = e^0). Since the Lie algebra has no invalid representations either, every reachable Sl value is genuinely in the group; membership is a theorem about reachability, not a runtime check.

Implementations§

Source§

impl<V: Tensor<F: CField>, const N: usize> Sl<V, N>

Source

pub fn trace(&self) -> V::F

Returns the trace of the represented special-linear transformation.

Trait Implementations§

Source§

impl<V: Clone + Tensor<F: CField>, const N: usize> Clone for Sl<V, N>

Source§

fn clone(&self) -> Sl<V, N>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<V: Copy + Tensor<F: CField>, const N: usize> Copy for Sl<V, N>

Source§

impl<V: Debug + Tensor<F: CField>, const N: usize> Debug for Sl<V, N>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<V: Tensor<F: CField>, const N: usize> Group for Sl<V, N>

Source§

fn identity() -> Self

Source§

fn compose(&self, other: &Self) -> Self

Source§

fn inverse(&self) -> Self

Source§

fn check_left_identity(&self) -> bool
where Self: PartialEq,

Source§

fn check_right_identity(&self) -> bool
where Self: PartialEq,

Source§

fn check_associativity(a: Self, b: Self, c: Self) -> bool
where Self: PartialEq,

Source§

fn check_left_inverse(&self) -> bool
where Self: PartialEq + Debug,

Source§

fn check_right_inverse(&self) -> bool
where Self: PartialEq,

Source§

impl<V: Tensor<F: CField>, const N: usize> Inv for Sl<V, N>

Source§

type Output = Sl<V, N>

The result after applying the operator.
Source§

fn inv(self) -> Self::Output

Returns the multiplicative inverse of self. Read more
Source§

impl<F: CField<Characteristic = NatZero>> LieGroup<SlAlgebra<F, 2, 3>> for Sl<Coords<F, 2>, 2>
where Matrix<Coords<F, 2>, 2>: MatrixExponential,

Source§

fn identity_exp(v: SlAlgebra<F, 2, 3>) -> Self

Source§

fn identity_log(p: &Self) -> Option<SlAlgebra<F, 2, 3>>

Source§

impl<V: Tensor<F: CField>, const N: usize> Mul for Sl<V, N>

Source§

type Output = Sl<V, N>

The resulting type after applying the * operator.
Source§

fn mul(self, rhs: Self) -> Self::Output

Performs the * operation. Read more
Source§

impl<V: Tensor<F: CField>, const N: usize> One for Sl<V, N>

Source§

fn one() -> Self

Returns the multiplicative identity element of Self, 1. Read more
Source§

fn set_one(&mut self)

Sets self to the multiplicative identity element of Self, 1.
Source§

fn is_one(&self) -> bool
where Self: PartialEq,

Returns true if self is equal to the multiplicative identity. Read more
Source§

impl<V: Tensor<F: CField>, const N: usize> PartialEq for Sl<V, N>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<R: Real> Quotient<Sl<Coords<Complex<R>, 2>, 2>, RootOfUnity<Complex<R>, 2>, SlAlgebra<Complex<R>, 2, 3>> for Lorentz<R>

Source§

fn new(g: Sl2c<R>) -> Self

Maps g to the Quotient value representing its coset gH.
Source§

fn lift(&self) -> Sl2c<R>

Recovers a representative of self’s coset, satisfying new(self.lift()) == self. Read more
Source§

fn embed(h: RootOfUnity<Complex<R>, 2>) -> Sl2c<R>

the subgroup inclusion H ↪ G
Source§

fn quotient_identity() -> Self

Source§

fn quotient_compose(&self, other: &Self) -> Self

Source§

fn quotient_inverse(&self) -> Self

Source§

fn quotient_identity_exp(v: V) -> Self

Source§

fn quotient_identity_log(p: &Self) -> Option<V>

Source§

fn check_new_respects_coset(g: G, h: H) -> bool
where Self: PartialEq,

The sole independent Quotient axiom: new must not distinguish elements of the same coset. Everything else (group structure, differential structure) follows from this plus the inherited LieGroup axioms.

Auto Trait Implementations§

§

impl<V, const N: usize> Freeze for Sl<V, N>
where <V as Tensor>::F: Sized, Matrix<V, N>: Freeze,

§

impl<V, const N: usize> RefUnwindSafe for Sl<V, N>
where <V as Tensor>::F: Sized, Matrix<V, N>: RefUnwindSafe,

§

impl<V, const N: usize> Send for Sl<V, N>
where <V as Tensor>::F: Sized, Matrix<V, N>: Send,

§

impl<V, const N: usize> Sync for Sl<V, N>
where <V as Tensor>::F: Sized, Matrix<V, N>: Sync,

§

impl<V, const N: usize> Unpin for Sl<V, N>
where <V as Tensor>::F: Sized, Matrix<V, N>: Unpin,

§

impl<V, const N: usize> UnsafeUnpin for Sl<V, N>
where <V as Tensor>::F: Sized, Matrix<V, N>: UnsafeUnpin,

§

impl<V, const N: usize> UnwindSafe for Sl<V, N>
where <V as Tensor>::F: Sized, Matrix<V, N>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<V, S> Chart<S, V> for S
where V: Tensor, S: Smooth<V>,

Source§

type Global = <S as Smooth<V>>::Global

The result of mapping local coordinates back onto the manifold. Read more
Source§

fn to_local(&self, point: &S) -> Option<V>

Source§

fn to_global(&self, coord: V) -> <S as Smooth<V>>::Global

Source§

fn chart_at(p: &S) -> S

Source§

fn local_distance(&self, other: &P) -> Option<<V::F as Field>::Fixed>
where V: Euclidean,

Calculates the distance between self and other in local coordinates, based at &self.
Source§

fn check_local_inverse(p: &P) -> bool
where P: PartialEq,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<𝒞, X> Equivalent<𝒞, X> for X
where 𝒞: Cat,

Source§

fn project(self) -> X

Source§

fn lift(x: X) -> X

Source§

impl<V, L> ExpMap<L, V> for L
where V: Tensor, L: Smooth<V>,

Source§

fn base_point(&self) -> L

Source§

fn check_base_point_is_origin(&self) -> bool
where V: Form,

Source§

fn check_preservation_of_origin(&self) -> bool
where V: Form,

Source§

fn check_chart_at_base_point(&self) -> bool
where V: Form,

If a chart centred at p exists, chart_at(p) returns it. Formally: chart_at(p).base_point() == p whenever p is the base point of some valid chart in this atlas. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<M> Monoid for M
where M: Point + One,

Source§

fn check_left_identity(&self) -> bool
where Self: PartialEq,

Source§

fn check_right_identity(&self) -> bool
where Self: PartialEq,

Source§

fn check_associativity(a: Self, b: Self, c: Self) -> bool
where Self: PartialEq,

Source§

impl<G> MulGroup for G
where G: Monoid + Inv<Output = G>,

Source§

fn check_left_inverse(&self) -> bool
where Self: PartialEq,

Source§

fn check_right_inverse(&self) -> bool
where Self: PartialEq,

Source§

impl<T> OptionallyOption<T> for T

Source§

fn into_option(self) -> Option<T>

Converts either permitted representation into Option<T>. Read more
Source§

impl<T> Point for T
where T: Clone + Debug,

Source§

impl<T> Reassociate for T

Source§

fn reassociate<P>( self, ) -> <<Self as ReassociateKernel<P>>::Reassociated as NormalizeWith<Undecorated>>::Normalized
where Self: ReassociateKernel<P>, <Self as ReassociateKernel<P>>::Reassociated: NormalizeWith<Undecorated>,

Source§

impl<V, L> Smooth<V> for L
where V: Tensor, L: LieGroup<V>,

Source§

type Global = L

The result of applying the exponential map. Read more
Source§

fn exp(&self, coord: V) -> L

The exponential map at self: sends a tangent vector v to the point reached by following the geodesic from self in direction v for unit time.
Source§

fn log(&self, point: &L) -> Option<V>

The logarithmic map at self: recovers the tangent vector whose geodesic reaches other, or None at the cut locus (e.g. the antipode on a sphere).
Source§

impl<V, L> TangentBundle<L, V> for L
where V: Tensor, L: Smooth<V>,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.