pub struct ProjectedDynamicBlockOps { /* private fields */ }Expand description
Time-dependent sector operators lifted into a shared parent Hilbert space.
This is the dynamic analogue of ProjectedBlockOps and evaluates
P (⊕ H_sector(t)) P† matrix-free at every requested time.
Implementations§
Source§impl ProjectedDynamicBlockOps
impl ProjectedDynamicBlockOps
pub fn new( blocks: impl IntoIterator<Item = Arc<dyn TimeDependentOperator>>, projectors: impl IntoIterator<Item = Arc<dyn LinearOperator>>, tolerance: f64, ) -> Result<Self>
pub fn blocks(&self) -> usize
pub fn full_dimension(&self) -> usize
pub fn block_dimension(&self) -> usize
pub fn project( &self, parent: &[Complex64], blocks: &mut [Complex64], ) -> Result<()>
pub fn lift(&self, blocks: &[Complex64], parent: &mut [Complex64]) -> Result<()>
pub fn completeness_residual(&self) -> Result<f64>
pub fn materialize(&self, time: f64, format: MatrixFormat) -> Result<Operator>
Trait Implementations§
Source§impl Clone for ProjectedDynamicBlockOps
impl Clone for ProjectedDynamicBlockOps
Source§fn clone(&self) -> ProjectedDynamicBlockOps
fn clone(&self) -> ProjectedDynamicBlockOps
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 moreAuto Trait Implementations§
impl Freeze for ProjectedDynamicBlockOps
impl !RefUnwindSafe for ProjectedDynamicBlockOps
impl Send for ProjectedDynamicBlockOps
impl Sync for ProjectedDynamicBlockOps
impl Unpin for ProjectedDynamicBlockOps
impl UnsafeUnpin for ProjectedDynamicBlockOps
impl !UnwindSafe for ProjectedDynamicBlockOps
Blanket Implementations§
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.