isnan
From DavinciWiki
Contents: Description, Arguments, Usage, Examples, Related Functions Supported Under Version: > 2.18 Current Davinci Version: 2.27 64-bit Safe: Yes
Description NaN test
Arguments and Return Values Arguments: Any davinci array (ie a numerical type). Return Value: 0 or 1
Usage Syntax: isnan(VAL) Returns 1 if VAL is NaN, 0 otherwise. If used on an array, isnan() 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> isnan(a) 3x1x1 array of uint8, bsq format [3 bytes] 0 0 0 dv> a[2] = exp(800)/exp(800) -nan dv> isnan(a) 3x1x1 array of uint8, bsq format [3 bytes] 0 1 0 |
DavinciWiki Mini-Nav Bar Contents
Contact Developers
All other topics
Related Functions
Recent Core Changes Modified On: 11-17-2016 |