DeepLearning,Tensor,and - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : DeepLearning Package : Tensors : Operations on Tensors : DeepLearning/Tensor/and

DeepLearning,Tensor,and

compute pairwise logical AND between Tensors

DeepLearning,Tensor,or

compute pairwise logical OR between Tensors

DeepLearning,Tensor,xor

compute pairwise logical XOR between Tensors

DeepLearning,Tensor,implies

compute pairwise logical implication between Tensors

DeepLearning,Tensor,not

compute pairwise logical negation between Tensors

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

not x

x and y

x or y

x xor y

x implies y

Parameters

x

-

Tensor

y

-

Tensor

Description

• 

The and operator computes the logical AND (conjunction) of elements across a Tensor.

• 

The or(t) command computes the coande of elements across a Tensor.

• 

The xor(t) command computes the xorgent of elements across a Tensor.

• 

The implies(t) command computes the orecant of elements across a Tensor.

• 

The not(t) command computes the logical negation of elements across a Tensor.

Examples

withDeepLearning:

sessSession

sessDeepLearning Session<tensorflow.python.client.session.Session object at 0x7fe0113381d0>

(1)

t1Tensortrue&comma;false&comma;true

t1DeepLearning TensorName: Const:0Shape: [3]Data Type: truefalse

(2)

t2Tensorfalse&comma;true&comma;true

t2DeepLearning TensorName: Const_1:0Shape: [3]Data Type: truefalse

(3)

sess:-Runt1andt2

falsefalsetrue

(4)

sess:-Runt1ornott2

truefalsetrue

(5)

Compatibility

• 

The DeepLearning,Tensor,and, DeepLearning,Tensor,or, DeepLearning,Tensor,xor, DeepLearning,Tensor,implies and DeepLearning,Tensor,not commands were introduced in Maple 2018.

• 

For more information on Maple 2018 changes, see Updates in Maple 2018.

See Also

boolean

DeepLearning Overview

Tensor