DeepLearning/Tensor/IsFinite
find finite elements of a Tensor
DeepLearning/Tensor/IsInfinite
find infinite elements of a Tensor
DeepLearning/Tensor/IsNaN
find NaN instances among the elements of a Tensor
Calling Sequence
Parameters
Options
Description
Examples
Compatibility
IsFinite(t,opts)
IsInfinite(t,opts)
IsNaN(t,opts)
t
-
Tensor
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 IsFinite(t,opts) command returns a boolean Tensor indicating which elements of t are finite.
The IsInfinite(t,opts) command returns a boolean Tensor indicating which elements of t are infinite.
The IsNaN(t,opts) command returns a boolean Tensor indicating which elements of t are NaN (not a number).
Here we begin with a 2x2 matrix and clone it twice vertically and three times horizontally, producing a 6x4 matrix.
with⁡DeepLearning:
t≔Constant⁡1,Float⁡∞|3.,Float⁡undefined
s≔IsFinite⁡t
The DeepLearning/Tensor/IsFinite, DeepLearning/Tensor/IsInfinite and DeepLearning/Tensor/IsNaN commands were introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DeepLearning Overview
Download Help Document