IsFinite - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

# Online Help

###### All Products    Maple    MapleSim

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 IsFinite(t,opts) IsInfinite(t,opts) IsNaN(t,opts)

Parameters

 t - Tensor opts - zero or more options as specified below

Options

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

Description

 • 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).

Examples

Here we begin with a 2x2 matrix and clone it twice vertically and three times horizontally, producing a 6x4 matrix.

 > $\mathrm{with}\left(\mathrm{DeepLearning}\right):$
 > $t≔\mathrm{Constant}\left(⟨⟨1,\mathrm{Float}\left(\mathrm{∞}\right)⟩|⟨3.,\mathrm{Float}\left(\mathrm{undefined}\right)⟩⟩\right)$
 > $s≔\mathrm{IsFinite}\left(t\right)$

Compatibility

 • 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