isinf

From DavinciWiki
Jump to: navigation, search


64-bit SafeYes

Description

infinity test

Arguments and Return Values

Arguments: Any davinci array (ie a numerical type).

Return Value: 0 or 1

Usage

Syntax: isinf(VAL)

Returns 1 if VAL is inf, 0 otherwise. If used on an array, isinf() returns an array of 0's and 1's of the same size.

Examples

dv> a = create(3, format=float)
3x1x1 array of float, bsq format [12 bytes]
0.00000    1.00000    2.00000
dv> isinf(a)
3x1x1 array of uint8, bsq format [3 bytes]
0    0    0
dv> a[2] = exp(800)
inf
dv> isinf(a)
3x1x1 array of uint8, bsq format [3 bytes]
0    1    0

DavinciWiki Mini-Nav Bar

Contents


Contact Developers

  • davinci-dev [AT] mars.asu.edu

All other topics

  • See navigation on the left

Related Functions

Recent Core Changes

Modified On: 11-17-2016

Personal tools