pub struct NdTensor { /* private fields */ }Expand description
A stored, immutable, contiguous row-major N-D tensor.
Implementations§
Source§impl NdTensor
impl NdTensor
Sourcepub fn from_input(input: NdTensorInput) -> Result<NdTensor, DataError>
pub fn from_input(input: NdTensorInput) -> Result<NdTensor, DataError>
Builds and validates a stored tensor from canonical contiguous input.
Sourcepub fn project_relations(
&self,
relations: &CoordinatorRelationSet,
source_id: Option<&SourceId>,
) -> Result<NdTensorBlock, DataError>
pub fn project_relations( &self, relations: &CoordinatorRelationSet, source_id: Option<&SourceId>, ) -> Result<NdTensorBlock, DataError>
Gathers axis-0 rows in relation order (optionally scoped to one source),
keyed by observation_id. Output sample_ids come from the relations,
not the stored tensor.
Trait Implementations§
impl StructuralPartialEq for NdTensor
Auto Trait Implementations§
impl Freeze for NdTensor
impl RefUnwindSafe for NdTensor
impl Send for NdTensor
impl Sync for NdTensor
impl Unpin for NdTensor
impl UnsafeUnpin for NdTensor
impl UnwindSafe for NdTensor
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