pub struct VectorSharedScaleFacts<const N: usize> {
pub exact: ExactRealSetFacts,
pub known_zero_mask: u128,
pub known_nonzero_mask: u128,
pub unknown_zero_mask: u128,
}Expand description
Conservative fact packet for a shared-scale vector object.
This is the stable scheduling surface for common-scale vector storage and borrowed common-scale views. It groups exact-set facts, sparse masks, and count helpers without exposing rational numerators or denominators. Keeping this object-level packet separate from scalar storage follows Yap’s exact-geometric-computation layering: geometric objects retain enough structure to choose arithmetic packages before expanding into BigNumber operations. See Yap, “Towards Exact Geometric Computation,” Computational Geometry 7.1-2 (1997).
Fields§
§exact: ExactRealSetFactsExact-rational representation facts for all coordinates.
known_zero_mask: u128Bit mask of coordinates known to be exactly zero.
known_nonzero_mask: u128Bit mask of coordinates known to be nonzero.
unknown_zero_mask: u128Bit mask of coordinates whose zero status is unknown.
Implementations§
Sourcepub fn is_known_zero(self) -> bool
pub fn is_known_zero(self) -> bool
Returns true when every coordinate is known to be exactly zero.
Sourcepub fn is_known_dense(self) -> bool
pub fn is_known_dense(self) -> bool
Returns true when every coordinate is known to be nonzero.
Sourcepub fn known_zero_count(self) -> u32
pub fn known_zero_count(self) -> u32
Counts coordinates known to be exactly zero.
Sourcepub fn known_nonzero_count(self) -> u32
pub fn known_nonzero_count(self) -> u32
Counts coordinates known to be nonzero.
Sourcepub fn unknown_zero_count(self) -> u32
pub fn unknown_zero_count(self) -> u32
Counts coordinates whose zero status is not structurally certified.
Sourcepub fn has_dyadic_schedule(self) -> bool
pub fn has_dyadic_schedule(self) -> bool
Returns true when the retained facts select a dyadic exact schedule.
Returns true when the retained facts select a non-dyadic shared denominator exact schedule.
Sourcepub fn has_integer_grid_schedule(self) -> bool
pub fn has_integer_grid_schedule(self) -> bool
Returns true when every coordinate is an exact integer.
Sourcepub fn has_signed_unit_schedule(self) -> bool
pub fn has_signed_unit_schedule(self) -> bool
Returns true when every coordinate is a known signed unit or zero.
Trait Implementations§
Source§fn clone(&self) -> VectorSharedScaleFacts<N>
fn clone(&self) -> VectorSharedScaleFacts<N>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn eq(&self, other: &VectorSharedScaleFacts<N>) -> bool
fn eq(&self, other: &VectorSharedScaleFacts<N>) -> bool
self and other values to be equal, and is used by ==.