pub trait TensorInstance {
    type Dense: TensorInstance;
    type Sparse: TensorInstance;

    fn into_dense(self) -> Self::Dense;
    fn into_sparse(self) -> Self::Sparse;
}
Expand description

A Tensor instance

Required Associated Types§

A dense representation of this Tensor

A sparse representation of this Tensor

Required Methods§

Return a dense representation of this Tensor.

Return a sparse representation of this Tensor.

Implementors§