and - Maple Help

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 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

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $\mathrm{sess}≔\mathrm{Session}\left(\right)$
 ${\mathrm{sess}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Session}}\\ {\mathrm{}}\end{array}\right]$ (1)
 > $\mathrm{t1}≔\mathrm{Tensor}\left(\left[\mathrm{true},\mathrm{false},\mathrm{true}\right]\right)$
 ${\mathrm{t1}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: truefalse}}\end{array}\right]$ (2)
 > $\mathrm{t2}≔\mathrm{Tensor}\left(\left[\mathrm{false},\mathrm{true},\mathrm{true}\right]\right)$
 ${\mathrm{t2}}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: truefalse}}\end{array}\right]$ (3)
 > $\mathrm{t1}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{and}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathrm{t2}$
 $\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: truefalse}}\end{array}\right]$ (4)
 > $\mathrm{t1}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{or}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathbf{not}\phantom{\rule[-0.0ex]{0.3em}{0.0ex}}\mathrm{t2}$
 $\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: truefalse}}\end{array}\right]$ (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.