Skip to main content

OnlyRowIndicesOutsideCollection

Struct OnlyRowIndicesOutsideCollection 

Source
pub struct OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex>,
{ /* private fields */ }
Expand description

A matrix oracle whose columns iterate only over entries that have indices outside a given collection.

Implementations§

Source§

impl<Matrix, RowIndicesToExclude> OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex>,

Source

pub fn new( matrix: Matrix, row_indices_to_exclude: RowIndicesToExclude, ) -> OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>

Create a new OnlyRowIndicesOutsideCollection from a matrix and a collection of column indices.

In order to operate properly, the collection of column indices should implement the MapHasKeyOrSequenceHasElement trait.

Trait Implementations§

Source§

impl<Matrix, RowIndicesToExclude> Clone for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle + Clone, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex> + Clone,

Source§

fn clone(&self) -> OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>

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<Matrix, RowIndicesToExclude> Copy for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle + Copy, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex> + Copy,

Source§

impl<Matrix, RowIndicesToExclude> Debug for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle + Debug, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex> + Debug,

Source§

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

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

impl<Matrix, RowIndicesToExclude> Eq for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle + Eq, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex> + Eq,

Source§

impl<Matrix, RowIndicesToExclude> MatrixAlgebra for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixAlgebra, RowIndicesToExclude: Copy + MapHasKeyOrSequenceHasElement<Matrix::RowIndex>,

Source§

impl<Matrix, RowIndicesToExclude> MatrixOracle for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle, RowIndicesToExclude: Copy + MapHasKeyOrSequenceHasElement<Matrix::RowIndex>,

Source§

type Coefficient = <Matrix as MatrixOracle>::Coefficient

Source§

type RowIndex = <Matrix as MatrixOracle>::RowIndex

Source§

type ColumnIndex = <Matrix as MatrixOracle>::ColumnIndex

Source§

type RowEntry = <Matrix as MatrixOracle>::RowEntry

Source§

type ColumnEntry = <Matrix as MatrixOracle>::ColumnEntry

Source§

type Row = <Matrix as MatrixOracle>::Row

Source§

type RowReverse = <Matrix as MatrixOracle>::RowReverse

Source§

type Column = OnlyIndicesOutsideCollection<<Matrix as MatrixOracle>::Column, RowIndicesToExclude>

Source§

type ColumnReverse = OnlyIndicesOutsideCollection<<Matrix as MatrixOracle>::ColumnReverse, RowIndicesToExclude>

Source§

fn row(&self, index: &Self::RowIndex) -> Self::Row

Source§

fn row_reverse(&self, index: &Self::RowIndex) -> Self::RowReverse

Source§

fn column(&self, index: &Self::ColumnIndex) -> Self::Column

Source§

fn column_reverse(&self, index: &Self::ColumnIndex) -> Self::ColumnReverse

Source§

fn has_row_for_index(&self, index: &Self::RowIndex) -> bool

Source§

fn has_column_for_index(&self, index: &Self::ColumnIndex) -> bool

Source§

fn structural_nonzero_entry( &self, row: &Self::RowIndex, column: &Self::ColumnIndex, ) -> Option<Self::Coefficient>

Returns Some(x) if there is a structural nonzero at (row,column). Read more
Source§

fn has_row_for_index_result( &self, index: &Self::RowIndex, ) -> Result<Self::RowIndex, Self::RowIndex>

Returns Ok(index) if index`` is valid and Err(index)ifindex` is invalid.
Source§

fn has_column_for_index_result( &self, index: &Self::ColumnIndex, ) -> Result<Self::ColumnIndex, Self::ColumnIndex>

Returns Ok(index) if index`` is valid and Err(index)ifindex` is invalid.
Source§

fn structural_nonzero_entry_result( &self, row: &Self::RowIndex, column: &Self::ColumnIndex, ) -> Result<Option<Self::Coefficient>, (Result<Self::RowIndex, Self::RowIndex>, Result<Self::ColumnIndex, Self::ColumnIndex>)>

Wraps the output of structural_nonzero_entry in a Result for error handling. Read more
Source§

fn row_result( &self, index: &Self::RowIndex, ) -> Result<Self::Row, Self::RowIndex>

Wraps the output of self.row in a Result for error handling. Read more
Source§

fn row_reverse_result( &self, index: &Self::RowIndex, ) -> Result<Self::RowReverse, Self::RowIndex>

Wraps the output of self.row_reverse in a Result for error handling. Read more
Source§

fn column_result( &self, index: &Self::ColumnIndex, ) -> Result<Self::Column, Self::ColumnIndex>

Wraps the output of self.column in a Result for error handling. Read more
Source§

fn column_reverse_result( &self, index: &Self::ColumnIndex, ) -> Result<Self::ColumnReverse, Self::ColumnIndex>

Wraps the output of self.column in a Result for error handling. Read more
Source§

impl<Matrix, RowIndicesToExclude> Ord for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle + Ord, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex> + Ord,

Source§

fn cmp( &self, other: &OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>, ) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl<Matrix, RowIndicesToExclude> PartialEq for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle + PartialEq, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex> + PartialEq,

Source§

fn eq( &self, other: &OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>, ) -> bool

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

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

Inequality operator !=. Read more
Source§

impl<Matrix, RowIndicesToExclude> PartialOrd for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle + PartialOrd, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex> + PartialOrd,

Source§

fn partial_cmp( &self, other: &OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>, ) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl<Matrix, RowIndicesToExclude> StructuralPartialEq for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: MatrixOracle + PartialEq, RowIndicesToExclude: MapHasKeyOrSequenceHasElement<Matrix::RowIndex> + PartialEq,

Auto Trait Implementations§

§

impl<Matrix, RowIndicesToExclude> Freeze for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: Freeze, RowIndicesToExclude: Freeze,

§

impl<Matrix, RowIndicesToExclude> RefUnwindSafe for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: RefUnwindSafe, RowIndicesToExclude: RefUnwindSafe,

§

impl<Matrix, RowIndicesToExclude> Send for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: Send, RowIndicesToExclude: Send,

§

impl<Matrix, RowIndicesToExclude> Sync for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: Sync, RowIndicesToExclude: Sync,

§

impl<Matrix, RowIndicesToExclude> Unpin for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: Unpin, RowIndicesToExclude: Unpin,

§

impl<Matrix, RowIndicesToExclude> UnsafeUnpin for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: UnsafeUnpin, RowIndicesToExclude: UnsafeUnpin,

§

impl<Matrix, RowIndicesToExclude> UnwindSafe for OnlyRowIndicesOutsideCollection<Matrix, RowIndicesToExclude>
where Matrix: UnwindSafe, RowIndicesToExclude: 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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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<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<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<T> IntoReverseOrder for T

Source§

fn into_reverse_order(self) -> ReverseOrder<T>

Returns an inverted order operator, consuming self

Source§

impl<T> MultiVectorOperations for T

Source§

fn linearly_combine_scalar_vector_pairs_without_symplifying<RingOperator, OrderOperator, Vector, Index, RingElement>( self, ring_operator: RingOperator, order_operator: OrderOperator, ) -> IteratorsMergedInSortedOrder<Scale<Vector::IntoIter, RingOperator>, OrderOperator>
where Self: Sized + IntoIterator<Item = (RingOperator::Element, Vector)>, Vector: IntoIterator<IntoIter: Iterator<Item: KeyValSet<Key = Index, Val = RingElement>>>, Index: PartialEq, OrderOperator: JudgePartialOrder<Vector::Item>, RingOperator: Clone + SemiringOperations<Element = RingElement>,

Returns a linear combination, without simplifying Read more
Source§

fn linearly_combine_scalar_vector_pairs<RingOperator, OrderOperator, Vector, RingElement>( self, ring_operator: RingOperator, order_operator: OrderOperator, ) -> Simplify<IteratorsMergedInSortedOrder<Scale<Vector::IntoIter, RingOperator>, OrderOperator>, RingOperator>
where Self: Sized + IntoIterator<Item = (RingElement, Vector)>, Vector: IntoIterator, Vector::Item: PartialEq + KeyValSet<Val = RingElement>, <Vector::Item as KeyValGet>::Key: PartialEq, OrderOperator: JudgePartialOrder<Vector::Item>, RingOperator: Clone + SemiringOperations<Element = RingElement>,

Returns a simplified linear combination Read more
Source§

fn sum_vectors_unsimplified<OrderOperator>( self, order_operator: OrderOperator, ) -> IteratorsMergedInSortedOrder<<Self::Item as IntoIterator>::IntoIter, OrderOperator>
where Self: Sized + IntoIterator, Self::Item: IntoIterator, OrderOperator: JudgePartialOrder<<<Self as IntoIterator>::Item as IntoIterator>::Item>,

Sum two or more vectors without simplifying Read more
Source§

fn sum_vectors<RingOperator, OrderOperator, RingElement, Index>( self, ring_operator: RingOperator, order_operator: OrderOperator, ) -> Simplify<IteratorsMergedInSortedOrder<<Self::Item as IntoIterator>::IntoIter, OrderOperator>, RingOperator>
where Self: Sized + IntoIterator, Self::Item: IntoIterator, <Self::Item as IntoIterator>::Item: PartialEq + KeyValSet<Key = Index, Val = RingElement>, OrderOperator: JudgePartialOrder<<<Self as IntoIterator>::Item as IntoIterator>::Item>, RingOperator: SemiringOperations<Element = RingElement>, Index: PartialEq,

Sum a collection of vectors, and simplify Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

unsafe fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
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> TransformIter for T

Source§

fn require_strict_ascent<OrderOperator>( self, order_operator: OrderOperator, ) -> RequireStrictAscent<Self, OrderOperator>
where Self: Sized + Iterator, Self::Item: Clone, OrderOperator: JudgePartialOrder<Self::Item>,

Wraps self in a struct that requires items to appear in strictly sorted order. Read more
Source§

fn require_strict_ascent_with_panic<OrderOperator>( self, order_operator: OrderOperator, ) -> RequireStrictAscentWithPanic<Self, OrderOperator>
where Self: Sized + Iterator, Self::Item: Clone, OrderOperator: JudgePartialOrder<Self::Item>,

Wraps self in a struct that requires items to appear in strictly sorted order. 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.
Source§

impl<T> Ungil for T
where T: Send,

Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V