isnan
Test element-wise for NaN.| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array, true where x is NaN.
isinf
Test element-wise for positive or negative infinity.| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array, true where x is +Inf or -Inf.
isfinite
Test element-wise for finiteness (not infinity and not NaN).| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array, true where x is finite.
isneginf
Test element-wise for negative infinity.| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array, true where x is -Infinity.
isposinf
Test element-wise for positive infinity.| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array, true where x is +Infinity.
iscomplex
Test element-wise whether values are complex (have non-zero imaginary part).| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array, true where the element has a non-zero imaginary part.
iscomplexobj
Returntrue if the input is a complex-typed array or has complex dtype.
| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input to check. |
boolean — true if x is an array with complex dtype (complex64 or complex128).
isreal
Test element-wise whether values are real (have zero imaginary part).| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array, true where the element has zero imaginary part.
isrealobj
Returntrue if the input is not a complex-typed array.
| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input to check. |
boolean — true if x is not a complex array (i.e., dtype is not complex64 or complex128).
isscalar
Returntrue if the input is a scalar value (number, boolean, bigint, or string).
| Name | Type | Default | Description |
|---|---|---|---|
val | ArrayLike | — | Value to test. |
boolean — true if element is a scalar type.
isnat
Test element-wise for Not-a-Time. Since numpy-ts does not implement datetime dtypes, this always returnsfalse for every element. Included for API compatibility with NumPy.
| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
NDArray — Boolean array of all false values (datetime dtypes are not supported).
isfortran
Returntrue if the array is Fortran-contiguous and not C-contiguous.
| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
boolean — true if the array is Fortran-contiguous (column-major) and not C-contiguous. In numpy-ts, arrays are always C-contiguous, so this typically returns false.
iterable
Returntrue if the input can be iterated over.
| Name | Type | Default | Description |
|---|---|---|---|
obj | ArrayLike | — | Value to test. |
boolean — true if y is iterable (arrays, NDArrays, strings, etc.).
isdtype
Test whether a dtype belongs to a specified kind or set of dtypes.| Name | Type | Default | Description |
|---|---|---|---|
dtype | DType | — | The dtype to test. |
kind | string | — | A dtype kind string (e.g., 'integral', 'real floating', 'numeric'). |
boolean — true if dtype matches the specified kind.
real_if_close
If the imaginary part of an array is close to zero, return only the real part. Otherwise, return the input unchanged.| Name | Type | Default | Description |
|---|---|---|---|
x | ArrayLike | — | Input array. |
tol | number | 100 | Tolerance factor. The imaginary part is considered close to zero if max(abs(imag)) < tol * eps where eps is the machine epsilon for the dtype. |
NDArray — Real-valued array if the imaginary part is negligible, otherwise the original array.