aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/matplotlib/py3/src/array.h
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2025-02-11 13:26:52 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2025-02-11 13:57:59 +0300
commitf895bba65827952ed934b2b46f9a45e30a191fd2 (patch)
tree03260c906d9ec41cdc03e2a496b15d407459cec0 /contrib/python/matplotlib/py3/src/array.h
parent5f7060466f7b9707818c2091e1a25c14f33c3474 (diff)
downloadydb-f895bba65827952ed934b2b46f9a45e30a191fd2.tar.gz
Remove deps on pandas
<https://github.com/ydb-platform/ydb/pull/14418> <https://github.com/ydb-platform/ydb/pull/14419> \-- аналогичные правки в gh Хочу залить в обход синка, чтобы посмотреть удалится ли pandas в нашей gh репе через piglet commit_hash:abca127aa37d4dbb94b07e1e18cdb8eb5b711860
Diffstat (limited to 'contrib/python/matplotlib/py3/src/array.h')
-rw-r--r--contrib/python/matplotlib/py3/src/array.h80
1 files changed, 0 insertions, 80 deletions
diff --git a/contrib/python/matplotlib/py3/src/array.h b/contrib/python/matplotlib/py3/src/array.h
deleted file mode 100644
index 47d82995541..00000000000
--- a/contrib/python/matplotlib/py3/src/array.h
+++ /dev/null
@@ -1,80 +0,0 @@
-/* -*- mode: c++; c-basic-offset: 4 -*- */
-
-/* Utilities to create scalars and empty arrays that behave like the
- Numpy array wrappers in numpy_cpp.h */
-
-#ifndef MPL_SCALAR_H
-#define MPL_SCALAR_H
-
-namespace array
-{
-
-template <typename T, int ND>
-class scalar
-{
- public:
- T m_value;
-
- scalar(const T value) : m_value(value)
- {
- }
-
- T &operator()(int i, int j = 0, int k = 0)
- {
- return m_value;
- }
-
- const T &operator()(int i, int j = 0, int k = 0) const
- {
- return m_value;
- }
-
- int dim(size_t i)
- {
- return 1;
- }
-
- size_t size()
- {
- return 1;
- }
-};
-
-template <typename T>
-class empty
-{
- public:
- typedef empty<T> sub_t;
-
- empty()
- {
- }
-
- T &operator()(int i, int j = 0, int k = 0)
- {
- throw std::runtime_error("Accessed empty array");
- }
-
- const T &operator()(int i, int j = 0, int k = 0) const
- {
- throw std::runtime_error("Accessed empty array");
- }
-
- sub_t operator[](int i) const
- {
- return empty<T>();
- }
-
- int dim(size_t i) const
- {
- return 0;
- }
-
- size_t size() const
- {
- return 0;
- }
-};
-}
-
-#endif