aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/contourpy/src/mpl2005.h
diff options
context:
space:
mode:
authorshumkovnd <shumkovnd@yandex-team.com>2023-11-10 14:39:34 +0300
committershumkovnd <shumkovnd@yandex-team.com>2023-11-10 16:42:24 +0300
commit77eb2d3fdcec5c978c64e025ced2764c57c00285 (patch)
treec51edb0748ca8d4a08d7c7323312c27ba1a8b79a /contrib/python/contourpy/src/mpl2005.h
parentdd6d20cadb65582270ac23f4b3b14ae189704b9d (diff)
downloadydb-77eb2d3fdcec5c978c64e025ced2764c57c00285.tar.gz
KIKIMR-19287: add task_stats_drawing script
Diffstat (limited to 'contrib/python/contourpy/src/mpl2005.h')
-rw-r--r--contrib/python/contourpy/src/mpl2005.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/contrib/python/contourpy/src/mpl2005.h b/contrib/python/contourpy/src/mpl2005.h
new file mode 100644
index 0000000000..e112880765
--- /dev/null
+++ b/contrib/python/contourpy/src/mpl2005.h
@@ -0,0 +1,32 @@
+#ifndef CONTOURPY_MPL_2005_H
+#define CONTOURPY_MPL_2005_H
+
+#include "contour_generator.h"
+#include "mpl2005_original.h"
+
+namespace contourpy {
+
+class Mpl2005ContourGenerator : public ContourGenerator
+{
+public:
+ Mpl2005ContourGenerator(
+ const CoordinateArray& x, const CoordinateArray& y, const CoordinateArray& z,
+ const MaskArray& mask, index_t x_chunk_size, index_t y_chunk_size);
+
+ ~Mpl2005ContourGenerator();
+
+ py::tuple filled(const double& lower_level, const double& upper_level);
+
+ py::tuple get_chunk_count() const; // Return (y_chunk_count, x_chunk_count)
+ py::tuple get_chunk_size() const; // Return (y_chunk_size, x_chunk_size)
+
+ py::tuple lines(const double& level);
+
+private:
+ CoordinateArray _x, _y, _z;
+ Csite *_site;
+};
+
+} // namespace contourpy
+
+#endif // CONTOURPY_MPL_2005_H