Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor includes and add NaN/Inf check function
Moved `#define _GNU_SOURCE` to the top of the file to ensure GNU-specific features are available before any includes. Reordered `#include` directives to avoid potential conflicts by placing them after platform-specific headers. Added a new static function `octaveMexIsNanOrInfDouble` to check if a double value is NaN or infinity using `mxIsNaN` and `mxIsInf`.
- Loading branch information