pub trait TensorUnaryBoolean {
    type Unary: TensorInstance;

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

Unary Tensor operations

Required Associated Types§

source

type Unary: TensorInstance

The return type of a unary operation

Required Methods§

source

fn not(self) -> TCResult<Self::Unary>

Element-wise logical not

Implementors§

source§

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

§

type Unary = DenseView<Txn, FE>

source§

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

§

type Unary = Tensor<Txn, FE>

source§

impl<Txn, FE, A> TensorUnaryBoolean for DenseTensor<Txn, FE, A>
where Txn: Transaction<FE>, FE: DenseCacheFile, A: DenseInstance + Into<DenseAccessCast<Txn, FE>>,

§

type Unary = DenseTensor<Txn, FE, DenseUnaryCast<Txn, FE, u8>>

source§

impl<Txn, FE, A> TensorUnaryBoolean for SparseTensor<Txn, FE, A>
where Txn: Transaction<FE>, FE: AsType<Node> + ThreadSafe, A: SparseInstance + Into<SparseAccess<Txn, FE, A::DType>>, SparseAccessCast<Txn, FE>: From<SparseAccess<Txn, FE, A::DType>>,

§

type Unary = SparseTensor<Txn, FE, SparseUnaryCast<Txn, FE, u8>>

source§

impl<Txn: ThreadSafe, FE: ThreadSafe> TensorUnaryBoolean for SparseView<Txn, FE>

§

type Unary = SparseView<Txn, FE>