pub trait TensorDiagonal {
    type Diagonal: TensorInstance;

    // Required method
    fn diagonal(self) -> TCResult<Self::Diagonal>;
}
Expand description

Tensor linear algebra operations

Required Associated Types§

source

type Diagonal: TensorInstance

The type of Tensor returned by diagonal

Required Methods§

source

fn diagonal(self) -> TCResult<Self::Diagonal>

Implementors§

source§

impl<Txn, FE> TensorDiagonal for DenseView<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node>,

§

type Diagonal = DenseView<Txn, FE>

source§

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

§

type Diagonal = Tensor<Txn, FE>

source§

impl<Txn, FE> TensorDiagonal for SparseView<Txn, FE>
where Txn: Transaction<FE>, FE: DenseCacheFile + AsType<Node>,

§

type Diagonal = SparseView<Txn, FE>

source§

impl<Txn, FE, A> TensorDiagonal for DenseTensor<Txn, FE, A>
where Txn: ThreadSafe, FE: ThreadSafe, A: DenseInstance,