Skip to main content

BcsrSections

Struct BcsrSections 

Source
pub struct BcsrSections<'view, OffsetWord, VertexWord, RelationWord>
where OffsetWord: BcsrWord, VertexWord: BcsrWord, RelationWord: BcsrWord,
{ pub head_offsets: &'view [OffsetWord], pub head_participants: &'view [VertexWord], pub tail_offsets: &'view [OffsetWord], pub tail_participants: &'view [VertexWord], pub vertex_outgoing_offsets: &'view [OffsetWord], pub vertex_outgoing_hyperedges: &'view [RelationWord], pub vertex_incoming_offsets: &'view [OffsetWord], pub vertex_incoming_hyperedges: &'view [RelationWord], }
Expand description

Borrowed input slices for a bipartite-CSR hypergraph view.

Offset slices use OffsetWord and decode to the incidence index width. Participant value slices use VertexWord and decode to the vertex index width. Vertex-major relation slices use RelationWord and decode to the relation index width.

§Performance

perf: unspecified; this is a borrowed parameter struct.

Fields§

§head_offsets: &'view [OffsetWord]

Hyperedge-major head offsets, length hyperedge_count + 1.

§head_participants: &'view [VertexWord]

Flat vertex IDs in head sets, length P_head.

§tail_offsets: &'view [OffsetWord]

Hyperedge-major tail offsets, length hyperedge_count + 1.

§tail_participants: &'view [VertexWord]

Flat vertex IDs in tail sets, length P_tail.

§vertex_outgoing_offsets: &'view [OffsetWord]

Vertex-major outgoing offsets, length vertex_count + 1.

§vertex_outgoing_hyperedges: &'view [RelationWord]

Flat hyperedge IDs where the vertex is in head, length P_outgoing.

§vertex_incoming_offsets: &'view [OffsetWord]

Vertex-major incoming offsets, length vertex_count + 1.

§vertex_incoming_hyperedges: &'view [RelationWord]

Flat hyperedge IDs where the vertex is in tail, length P_incoming.

Trait Implementations§

Source§

impl<'view, OffsetWord, VertexWord, RelationWord> Clone for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>
where OffsetWord: BcsrWord + Clone, VertexWord: BcsrWord + Clone, RelationWord: BcsrWord + Clone,

Source§

fn clone(&self) -> BcsrSections<'view, OffsetWord, VertexWord, RelationWord>

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<'view, OffsetWord, VertexWord, RelationWord> Debug for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>
where OffsetWord: BcsrWord + Debug, VertexWord: BcsrWord + Debug, RelationWord: BcsrWord + Debug,

Source§

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

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

impl<'view, OffsetWord, VertexWord, RelationWord> Copy for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>
where OffsetWord: BcsrWord + Copy, VertexWord: BcsrWord + Copy, RelationWord: BcsrWord + Copy,

Auto Trait Implementations§

§

impl<'view, OffsetWord, VertexWord, RelationWord> Freeze for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>

§

impl<'view, OffsetWord, VertexWord, RelationWord> RefUnwindSafe for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>
where OffsetWord: RefUnwindSafe, VertexWord: RefUnwindSafe, RelationWord: RefUnwindSafe,

§

impl<'view, OffsetWord, VertexWord, RelationWord> Send for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>
where OffsetWord: Sync, VertexWord: Sync, RelationWord: Sync,

§

impl<'view, OffsetWord, VertexWord, RelationWord> Sync for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>
where OffsetWord: Sync, VertexWord: Sync, RelationWord: Sync,

§

impl<'view, OffsetWord, VertexWord, RelationWord> Unpin for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>

§

impl<'view, OffsetWord, VertexWord, RelationWord> UnsafeUnpin for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>

§

impl<'view, OffsetWord, VertexWord, RelationWord> UnwindSafe for BcsrSections<'view, OffsetWord, VertexWord, RelationWord>
where OffsetWord: RefUnwindSafe, VertexWord: RefUnwindSafe, RelationWord: RefUnwindSafe,

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<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> 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, 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.