From f895bba65827952ed934b2b46f9a45e30a191fd2 Mon Sep 17 00:00:00 2001 From: maxim-yurchuk Date: Tue, 11 Feb 2025 13:26:52 +0300 Subject: Remove deps on pandas MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit \-- аналогичные правки в gh Хочу залить в обход синка, чтобы посмотреть удалится ли pandas в нашей gh репе через piglet commit_hash:abca127aa37d4dbb94b07e1e18cdb8eb5b711860 --- contrib/python/matplotlib/py2/src/array.h | 80 ------------------------------- 1 file changed, 80 deletions(-) delete mode 100644 contrib/python/matplotlib/py2/src/array.h (limited to 'contrib/python/matplotlib/py2/src/array.h') diff --git a/contrib/python/matplotlib/py2/src/array.h b/contrib/python/matplotlib/py2/src/array.h deleted file mode 100644 index 8056366a1c9..00000000000 --- a/contrib/python/matplotlib/py2/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 _SCALAR_H_ -#define _SCALAR_H_ - -namespace array -{ - -template -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 -class empty -{ - public: - typedef empty 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(); - } - - int dim(size_t i) const - { - return 0; - } - - size_t size() const - { - return 0; - } -}; -} - -#endif -- cgit v1.3