/
githubmirror
/
nbs
Обзор
Документация
Войти
/
githubmirror
/
nbs
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
contrib/python/contourpy/src/common.h
32 строки
841 B
Anton Myagkov
Update ydb version to 24.4 (#4579)
07 фев 2026, 11:59
Не верифицирован
07 фев 2026, 11:59
2c21cae
Код
Авторство
О чём код?
#ifndef CONTOURPY_COMMON_H #define CONTOURPY_COMMON_H #include <pybind11/pybind11.h> #include <pybind11/numpy.h> namespace contourpy { namespace py = pybind11; // quad/point index type, the same as for numpy array shape/indices (== npy_intp). Also used for // chunks. typedef py::ssize_t index_t; // Count of points, lines and holes. typedef py::size_t count_t; // Offsets into point arrays. typedef uint32_t offset_t; // Input numpy array classes. typedef py::array_t<double, py::array::c_style | py::array::forcecast> CoordinateArray; typedef py::array_t<bool, py::array::c_style | py::array::forcecast> MaskArray; // Output numpy array classes. typedef py::array_t<double> PointArray; typedef py::array_t<uint8_t> CodeArray; typedef py::array_t<offset_t> OffsetArray; } // namespace contourpy #endif // CONTOURPY_COMMON_H