pub struct HypergraphPageRankScratch<'scratch, S> { /* private fields */ }Expand description
Borrowed scratch storage for incidence/bipartite hypergraph PageRank.
§Performance
Construction is O(1). teleport must cover element_bound + relation_bound,
while next_elements and next_relations cover their respective bounds.
Implementations§
Source§impl<'scratch, S> HypergraphPageRankScratch<'scratch, S>
impl<'scratch, S> HypergraphPageRankScratch<'scratch, S>
Sourcepub const fn new(
teleport: &'scratch mut [S],
next_elements: &'scratch mut [S],
next_relations: &'scratch mut [S],
visible_elements: &'scratch mut [u8],
visible_relations: &'scratch mut [u8],
) -> Self
pub const fn new( teleport: &'scratch mut [S], next_elements: &'scratch mut [S], next_relations: &'scratch mut [S], visible_elements: &'scratch mut [u8], visible_relations: &'scratch mut [u8], ) -> Self
Constructs borrowed hypergraph PageRank scratch from caller-owned slices.
§Performance
This function is O(1).
Sourcepub const fn teleport_capacity(&self) -> usize
pub const fn teleport_capacity(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl<'scratch, S> !UnwindSafe for HypergraphPageRankScratch<'scratch, S>
impl<'scratch, S> Freeze for HypergraphPageRankScratch<'scratch, S>
impl<'scratch, S> RefUnwindSafe for HypergraphPageRankScratch<'scratch, S>where
S: RefUnwindSafe,
impl<'scratch, S> Send for HypergraphPageRankScratch<'scratch, S>where
S: Send,
impl<'scratch, S> Sync for HypergraphPageRankScratch<'scratch, S>where
S: Sync,
impl<'scratch, S> Unpin for HypergraphPageRankScratch<'scratch, S>
impl<'scratch, S> UnsafeUnpin for HypergraphPageRankScratch<'scratch, S>
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