Datatype - Maple Help

# Online Help

###### All Products    Maple    MapleSim

DeepLearning/Tensor/Datatype

compute sum over entries of a Tensor

 Calling Sequence Datatype(t)

Parameters

 t - Tensor

Description

 • The Datatype(t) command returns a Maple type corresponding to the datatype specified for the Tensor t.

Examples

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $t≔\mathrm{Constant}\left(⟨⟨1.,2.⟩|⟨3.,4.⟩|⟨5.,6.⟩⟩,\mathrm{datatype}=\mathrm{float}\left[4\right]\right)$
 ${t}{≔}\left[\begin{array}{c}{\mathrm{DeepLearning Tensor}}\\ {\mathrm{Name: none}}\\ {\mathrm{Shape: undefined}}\\ {\mathrm{Data Type: float\left[4\right]}}\end{array}\right]$ (1)
 > $\mathrm{Datatype}\left(t\right)$
 ${{\mathrm{float}}}_{{4}}$ (2)

Compatibility

 • The DeepLearning/Tensor/Datatype command was introduced in Maple 2018.
 • For more information on Maple 2018 changes, see Updates in Maple 2018.

 See Also