Trait tc_tensor::TensorDiagonal
source · [−]pub trait TensorDiagonal<D: Dir> {
type Txn: Transaction<D>;
type Diagonal: TensorAccess;
fn diagonal<'async_trait>(
self,
txn: Self::Txn
) -> Pin<Box<dyn Future<Output = TCResult<Self::Diagonal>> + Send + 'async_trait>>
where
Self: 'async_trait;
}
Expand description
Tensor
linear algebra operations
Required Associated Types
type Txn: Transaction<D>
type Txn: Transaction<D>
The type of Transaction
to expect
type Diagonal: TensorAccess
type Diagonal: TensorAccess
The type of Tensor
returned by diagonal