isfinite
isnan(x)
Input: x · Output: no output
What it is
A scalar gives a bool; a Vec/Signal gives a mask, so x[isfinite(x)] drops the bad samples and sum(isnan(x)) counts them; a Mat gives a flat column-major mask (use any/sum). isinf is true for ±inf, isfinite is false for NaN and ±inf. A complex element counts if either part qualifies. A string is an error.
Overloads
One call shape — this function is not overloaded.
| Code | Input | Output | Description |
isnan(x) | x scalar, bool, Vec, Signal, Mat, or stringnot documented yet | not documented yet | isinf is true for ±inf, isfinite is false for NaN and ±inf. A complex element counts if either part qualifies. A string is an error. |
Examples
No documentation example calls this form yet. The Core maths chapter is where one belongs.