Trait tc_tensor::DenseAccess[][src]

pub trait DenseAccess<FD: File<Array>, FS: File<Node>, D: Dir, T: Transaction<D>>: Clone + ReadValueAt<D, Txn = T> + TensorAccess + Send + Sync + Sized + 'static {
    type Slice: DenseAccess<FD, FS, D, T>;
    type Transpose: DenseAccess<FD, FS, D, T>;
    fn accessor(self) -> DenseAccessor<FD, FS, D, T>;
fn slice(self, bounds: Bounds) -> TCResult<Self::Slice>;
fn transpose(
        self,
        permutation: Option<Vec<usize>>
    ) -> TCResult<Self::Transpose>;
fn read_values<'async_trait>(
        self,
        txn: Self::Txn,
        coords: Coords
    ) -> Pin<Box<dyn Future<Output = TCResult<Array>> + Send + 'async_trait>>
    where
        Self: 'async_trait
; fn block_stream<'a>(
        self,
        txn: Self::Txn
    ) -> TCBoxTryFuture<'a, TCBoxTryStream<'a, Array>> { ... }
fn value_stream<'a>(
        self,
        txn: Self::Txn
    ) -> TCBoxTryFuture<'a, TCBoxTryStream<'a, Number>> { ... } }
Expand description

Common DenseTensor access methods

Associated Types

The type returned by slice

The type returned by transpose

Required methods

Return a DenseAccessor enum which contains this accessor.

Return a slice of this DenseTensor.

Return a transpose of this DenseTensor.

Return an Array with the values at the given coordinates.

Provided methods

Return a stream of the Arrays which this DenseTensor comprises.

Return a stream of the elements of this DenseTensor.

Implementors