Skip to main content

IlpExactNaryRequest

Struct IlpExactNaryRequest 

Source
pub struct IlpExactNaryRequest<'a> {
    pub body_offset: &'a [u32],
    pub body_len: &'a [u32],
    pub atom_candidate_slot: &'a [u32],
    pub atom_arity: &'a [u32],
    pub atom_binding_offset: &'a [u32],
    pub binding_codes: &'a [u32],
    pub cand_values: &'a [u64],
    pub cand_value_offset: &'a [u32],
    pub cand_rows: &'a [u32],
    pub pos_values: &'a [u64],
    pub neg_values: &'a [u64],
    pub head_arity: u32,
}
Expand description

Host-slice scoring request: the pattern batch plus candidate relations and example tuples as flat host arrays, exactly as the kernel consumes them (column-major, element units).

Fields§

§body_offset: &'a [u32]§body_len: &'a [u32]§atom_candidate_slot: &'a [u32]§atom_arity: &'a [u32]§atom_binding_offset: &'a [u32]§binding_codes: &'a [u32]§cand_values: &'a [u64]

Concatenated COLUMN-MAJOR u64 relation values: within a relation, cell (row, position) sits at `cand_value_offset[slot]

  • position * cand_rows[slot] + row`. All offsets are u32 ELEMENT indexes, never bytes.
§cand_value_offset: &'a [u32]

Element offset of each relation’s first value in cand_values.

§cand_rows: &'a [u32]§pos_values: &'a [u64]

COLUMNAR example tuples: position i of example q sits at i * example_count + q; length is a multiple of head_arity.

§neg_values: &'a [u64]§head_arity: u32

Auto Trait Implementations§

Blanket Implementations§

§

impl<T> Allocation for T
where T: RefUnwindSafe + Send + Sync,

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