/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
contrib/python/contourpy/src/util.h
29 строк
732 B
Anton Myagkov
Update ydb version to 24.4 (#4579)
07 фев 2026, 11:59
Не верифицирован
07 фев 2026, 11:59
2c21cae
Код
Авторство
О чём код?
#ifndef CONTOURPY_UTIL_H #define CONTOURPY_UTIL_H #include "common.h" namespace contourpy { class Util { public: static void ensure_nan_loaded(); static index_t get_max_threads(); // This is the NaN used internally and returned to calling functions. The value is taken from // numpy rather than the standard C++ approach so that it is guaranteed to work with // numpy.isnan(). The value is actually the same for many platforms, but this approach // guarantees it works for all platforms that numpy supports. // // ensure_nan_loaded() must be called before this value is read. static double nan; private: static bool _nan_loaded; }; } // namespace contourpy #endif // CONTOURPY_UTIL_H