pub struct NdTensorStore { /* private fields */ }Expand description
An immutable collection of N-D tensors keyed by tensor_id.
Implementations§
Source§impl NdTensorStore
impl NdTensorStore
Sourcepub fn from_inputs(
inputs: Vec<NdTensorInput>,
) -> Result<NdTensorStore, DataError>
pub fn from_inputs( inputs: Vec<NdTensorInput>, ) -> Result<NdTensorStore, DataError>
Builds a store from canonical inputs, rejecting duplicate tensor ids.
pub fn is_empty(&self) -> bool
Sourcepub fn manifests(&self) -> Result<Vec<NdTensorManifest>, DataError>
pub fn manifests(&self) -> Result<Vec<NdTensorManifest>, DataError>
Provider-wide manifests for every stored tensor.
Sourcepub fn bindings_for_relations(
&self,
relations: &CoordinatorRelationSet,
representation_id: &RepresentationId,
) -> Result<Vec<NdTensorBinding>, DataError>
pub fn bindings_for_relations( &self, relations: &CoordinatorRelationSet, representation_id: &RepresentationId, ) -> Result<Vec<NdTensorBinding>, DataError>
Bindings for tensors whose representation matches representation_id and
whose observations cover the relation set (per source).
Sourcepub fn project_relations(
&self,
tensor_id: &str,
relations: &CoordinatorRelationSet,
source_id: Option<&SourceId>,
) -> Result<NdTensorBlock, DataError>
pub fn project_relations( &self, tensor_id: &str, relations: &CoordinatorRelationSet, source_id: Option<&SourceId>, ) -> Result<NdTensorBlock, DataError>
Projects a single tensor over the given relations.
Trait Implementations§
Source§impl Clone for NdTensorStore
impl Clone for NdTensorStore
Source§fn clone(&self) -> NdTensorStore
fn clone(&self) -> NdTensorStore
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 moreSource§impl Debug for NdTensorStore
impl Debug for NdTensorStore
Source§impl Default for NdTensorStore
impl Default for NdTensorStore
Source§fn default() -> NdTensorStore
fn default() -> NdTensorStore
Returns the “default value” for a type. Read more
Source§impl PartialEq for NdTensorStore
impl PartialEq for NdTensorStore
Source§fn eq(&self, other: &NdTensorStore) -> bool
fn eq(&self, other: &NdTensorStore) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NdTensorStore
Auto Trait Implementations§
impl Freeze for NdTensorStore
impl RefUnwindSafe for NdTensorStore
impl Send for NdTensorStore
impl Sync for NdTensorStore
impl Unpin for NdTensorStore
impl UnsafeUnpin for NdTensorStore
impl UnwindSafe for NdTensorStore
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