pub struct IndexMapping<I>where
I: IndexLike,{
pub true_index: I,
pub internal_index: I,
}Expand description
Mapping between true site indices and internal MPO indices.
In the equation A * x = b:
- The state
xhas site indices with certain IDs - The MPO
Ainternally uses different IDs (s_in_tmp,s_out_tmp) - This mapping defines the correspondence
Fields§
§true_index: ITrue site index (from state x or b)
internal_index: IInternal MPO index (s_in_tmp or s_out_tmp)
Trait Implementations§
Source§impl<I> Clone for IndexMapping<I>where
I: IndexLike + Clone,
impl<I> Clone for IndexMapping<I>where
I: IndexLike + Clone,
Source§fn clone(&self) -> IndexMapping<I>
fn clone(&self) -> IndexMapping<I>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl<I> Freeze for IndexMapping<I>where
I: Freeze,
impl<I> RefUnwindSafe for IndexMapping<I>where
I: RefUnwindSafe,
impl<I> Send for IndexMapping<I>
impl<I> Sync for IndexMapping<I>
impl<I> Unpin for IndexMapping<I>where
I: Unpin,
impl<I> UnsafeUnpin for IndexMapping<I>where
I: UnsafeUnpin,
impl<I> UnwindSafe for IndexMapping<I>where
I: UnwindSafe,
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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>
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 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>
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