-
Notifications
You must be signed in to change notification settings - Fork 4
compute isfinite
kgryte edited this page May 12, 2015
·
1 revision
Computes for each array
element whether an element is a finite number
. The function returns an array
with length equal to that of the input array
. Each output array
element is either 0
or 1
. A value of 1
means that an element is a finite number
and 0
means that an element is not a finite number
.
var out = compute.isfinite( [ 2, 1/0, 'beep', 5, 4, -1/0, null, NaN ] );
// returns [ 1, 0, 0, 1, 1, 0, 0, 0 ]
- Utilities
- Array Creation
- Sorting and Reshaping Arrays
- Special Functions
- Arithmetic
- Relational Operations
- Logical Operations
- Trigonometry
- Geometry
- Sets
- Discrete Mathematics
- Linear Algebra
- Statistics