pub struct ConstraintRowId(pub usize);Expand description
A row index in a ConstraintSet’s OWN constraint-row space — the space
addressed by ConstraintSet::values, ConstraintSet::bound and
ConstraintSet::row_norm, i.e. 0..nrows().
This is NOT a coefficient (β) index. The two spaces have different sizes
(nrows() vs ncols()) and different meanings, and they coincide only in
the special case of a square carrier whose row r is exactly the box
β_r ≥ 0. A block-diagonal composition breaks that coincidence: its row ids
are the CONCATENATION of the member row counts while its columns are the
concatenation of the member column ranges, so as soon as one member has
nrows() < ncols() (a monotone sub-basis alongside unconstrained intercept /
covariate columns) row id r of a later block names a β coordinate owned by
an EARLIER block. The newtype exists so that mistake cannot be made silently;
to go from a row to the coefficients it acts on, call
ConstraintSet::row_column_support.
Tuple Fields§
§0: usizeImplementations§
Trait Implementations§
Source§impl Clone for ConstraintRowId
impl Clone for ConstraintRowId
Source§fn clone(&self) -> ConstraintRowId
fn clone(&self) -> ConstraintRowId
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for ConstraintRowId
Source§impl Debug for ConstraintRowId
impl Debug for ConstraintRowId
impl Eq for ConstraintRowId
Source§impl Hash for ConstraintRowId
impl Hash for ConstraintRowId
Source§impl Ord for ConstraintRowId
impl Ord for ConstraintRowId
Source§fn cmp(&self, other: &ConstraintRowId) -> Ordering
fn cmp(&self, other: &ConstraintRowId) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for ConstraintRowId
impl PartialEq for ConstraintRowId
Source§impl PartialOrd for ConstraintRowId
impl PartialOrd for ConstraintRowId
impl StructuralPartialEq for ConstraintRowId
Auto Trait Implementations§
impl Freeze for ConstraintRowId
impl RefUnwindSafe for ConstraintRowId
impl Send for ConstraintRowId
impl Sync for ConstraintRowId
impl Unpin for ConstraintRowId
impl UnsafeUnpin for ConstraintRowId
impl UnwindSafe for ConstraintRowId
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> RuleType for T
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.