DeepLearning/Tensor/Cast
cast Tensor to new type
Calling Sequence
Parameters
Description
Examples
Compatibility
Cast(x, t)
x
-
Tensor
t
one of string,truefalse,integer[4],integer[8],float[4],float[8],complex[4], or complex[8]
The Cast(x,t) command constructs a Tensor by casting x to the specified type t.
with⁡DeepLearning:
t1 ≔ Constant⁡86,−15,77,−19,−89,−80,−53,66,−19,datatype=float4
t1≔DeepLearning TensorShape: [3, 3]Data Type: float[4]
Cast⁡t1,complex8
DeepLearning TensorShape: [3, 3]Data Type: complex[8]
The DeepLearning/Tensor/Cast command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
Download Help Document
What kind of issue would you like to report? (Optional)