Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Library: xplore
See also: countNaN countNotNumber isNaN isNumber

Macro: isInf
Description: Determines whether elements of an array are infinity or -infinity (Inf or -Inf).

Usage: y = isInf (x)
Input:
x array
Output:
y array with 1 (true, is NaN) or 0 (false)

Example:
library("xplore")
x = #(0/0, 1/0, -1/0, 1)
x ~ isInf (x)
Result:

Contents of _tmp
[1,]   NaN     0 
[2,]   Inf     1 
[3,]  -Inf     1 
[4,]     1     0 

Library: xplore
See also: countNaN countNotNumber isNaN isNumber

Keywords - Function groups - @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

Author: TTK, 960424
(C) MD*TECH Method and Data Technologies, 28.6.1999