DeepLearning/Tensor/IsFinite - Maple Programming Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Programming : DeepLearning Package : Tensors : Operations on Tensors : DeepLearning/Tensor/IsFinite

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

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.

withDeepLearning:

tConstant1,Float|3.,Floatundefined

sIsFinitet

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

DeepLearning Overview

Tensor