pub struct Q42TensorView<'a> { /* private fields */ }Expand description
Immutable zero-heap tensor query view.
Implementations§
Source§impl<'a> Q42TensorView<'a>
impl<'a> Q42TensorView<'a>
pub fn new( nquins: &'a [NQuin], tensor_metadata: &'a [TensorMetadata], volume_config: &'a TensorVolumeConfig, ) -> Result<Self, TensorVolumeError>
pub fn config(&self) -> &'a TensorVolumeConfig
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn tensor_count(&self) -> usize
pub fn get_tensorized_nquins_into( &self, out: &mut [TensorizedEntry<'a>], ) -> Result<usize, TensorVolumeError>
pub fn visit_tensorized_nquins<F>( &self, on_entry: F, ) -> Result<(), TensorVolumeError>
pub fn tensor_search_into( &self, query: &Tensor10D, max_distance: f32, out: &mut [usize], ) -> Result<usize, TensorVolumeError>
pub fn visit_tensor_search<F>( &self, query: &Tensor10D, max_distance: f32, on_match: F, ) -> Result<(), TensorVolumeError>
pub fn temporal_query_into( &self, target_t: f32, tolerance: f32, out: &mut [usize], ) -> Result<usize, TensorVolumeError>
pub fn visit_temporal_query<F>( &self, target_t: f32, tolerance: f32, on_match: F, ) -> Result<(), TensorVolumeError>
pub fn manifold_query_into( &self, target_w: f32, max_distance: f32, out: &mut [usize], ) -> Result<usize, TensorVolumeError>
pub fn visit_manifold_query<F>( &self, target_w: f32, max_distance: f32, on_match: F, ) -> Result<(), TensorVolumeError>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Q42TensorView<'a>
impl<'a> RefUnwindSafe for Q42TensorView<'a>
impl<'a> Send for Q42TensorView<'a>
impl<'a> Sync for Q42TensorView<'a>
impl<'a> Unpin for Q42TensorView<'a>
impl<'a> UnsafeUnpin for Q42TensorView<'a>
impl<'a> UnwindSafe for Q42TensorView<'a>
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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