pub enum RotationKind {
Complex2D,
Quaternion4D,
}Expand description
Which rotational-state algebra the block uses for the data-dependent
positional rotation of B/C.
Complex2D— the abelianSO(2)/complex RoPE that Mamba-3 ships: cumulative angles viacumsum, applied by [apply_rope]. The default; behaviourally unchanged.Quaternion4D— the non-abelianSU(2) ⊂ SO(4)quaternion rotation of this module: cumulative product viaquat_cumprod, applied byrotate_state_rank_blocks. Richer state-tracking; selects theRotationState::Quaternioncache accumulator.
Variants§
Complex2D
Abelian complex (SO(2)) RoPE — the current default behaviour.
Quaternion4D
Non-abelian quaternion (SU(2)) rotation.
Trait Implementations§
Source§impl Clone for RotationKind
impl Clone for RotationKind
Source§fn clone(&self) -> RotationKind
fn clone(&self) -> RotationKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RotationKind
Source§impl Debug for RotationKind
impl Debug for RotationKind
Source§impl Default for RotationKind
impl Default for RotationKind
Source§impl<'de> Deserialize<'de> for RotationKind
impl<'de> Deserialize<'de> for RotationKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RotationKind
Source§impl PartialEq for RotationKind
impl PartialEq for RotationKind
Source§fn eq(&self, other: &RotationKind) -> bool
fn eq(&self, other: &RotationKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RotationKind
impl Serialize for RotationKind
impl StructuralPartialEq for RotationKind
Auto Trait Implementations§
impl Freeze for RotationKind
impl RefUnwindSafe for RotationKind
impl Send for RotationKind
impl Sync for RotationKind
impl Unpin for RotationKind
impl UnsafeUnpin for RotationKind
impl UnwindSafe for RotationKind
Blanket Implementations§
impl<T> Boilerplate for T
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.