pub trait TensorWrite {
    // Required methods
    fn write_value<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        range: Range,
        value: Number
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn write_value_at<'life0, 'async_trait>(
        &'life0 self,
        txn_id: TxnId,
        coord: Coord,
        value: Number
    ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Tensor write operations

Required Methods§

source

fn write_value<'life0, 'async_trait>( &'life0 self, txn_id: TxnId, range: Range, value: Number ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Write a single value to the slice of this Tensor with the given Range.

source

fn write_value_at<'life0, 'async_trait>( &'life0 self, txn_id: TxnId, coord: Coord, value: Number ) -> Pin<Box<dyn Future<Output = TCResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Overwrite a single element of this Tensor.

Implementors§

source§

impl<Txn, FE> TensorWrite for DenseBase<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node>,

source§

impl<Txn, FE> TensorWrite for Dense<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node>,

source§

impl<Txn, FE> TensorWrite for Tensor<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node>,

source§

impl<Txn, FE> TensorWrite for SparseBase<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node>,

source§

impl<Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node>> TensorWrite for Sparse<Txn, FE>