DeepLearning/Tensor/CrossProduct
compute cross product of Tensors
DeepLearning/Tensor/DotProduct
compute dot product of Tensors
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
CrossProduct(x,y,opts)
DotProduct(x,y,opts)
x
-
Tensor
y
opts
zero or more options as specified below
name=string
The value of option name specifies an optional name for this Tensor, to be displayed in output and when visualizing the dataflow graph.
The CrossProduct(x,y,opts) command computes the cross product of two Tensor objects.
The DotProduct(x,y,opts) command computes the dot product of two Tensor objects.
with⁡DeepLearning:
v1≔Constant⁡−35.0,65.0,41.0
v1≔DeepLearning TensorShape: [3]Data Type: float[8]
v2≔Constant⁡−14.0,45.0,24.0
v2≔DeepLearning TensorShape: [3]Data Type: float[8]
CrossProduct⁡v1,v2
DeepLearning TensorShape: [3]Data Type: float[8]
m1≔Constant⁡−92.1,−31.3,67.3
m1≔DeepLearning TensorShape: [3, 1]Data Type: float[8]
m2≔Constant⁡99.7|29.0|44.5
m2≔DeepLearning TensorShape: [1, 3]Data Type: float[8]
DotProduct⁡m1,m2
DeepLearning TensorShape: [3, 3]Data Type: float[8]
The DeepLearning/Tensor/CrossProduct and DeepLearning/Tensor/DotProduct commands were introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
LinearAlgebra
Download Help Document