Python numpy.source() Examples
The following are 30
code examples of numpy.source().
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example.
You may also want to check out all available functions/classes of the module
numpy
, or try the search function
.
Example #1
Source File: utils.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def default(self, node, **kw): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #2
Source File: utils.py From vnpy_crypto with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #3
Source File: utils.py From twitter-stock-recommendation with MIT License | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #4
Source File: utils.py From keras-lambda with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #5
Source File: utils.py From lambda-packs with MIT License | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #6
Source File: utils.py From lambda-packs with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #7
Source File: utils.py From auto-alt-text-lambda-api with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #8
Source File: utils.py From Mastering-Elasticsearch-7.0 with MIT License | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #9
Source File: utils.py From Serverless-Deep-Learning-with-TensorFlow-and-AWS-Lambda with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #10
Source File: utils.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #11
Source File: utils.py From Carnets with BSD 3-Clause "New" or "Revised" License | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #12
Source File: utils.py From predictive-maintenance-using-machine-learning with Apache License 2.0 | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #13
Source File: utils.py From predictive-maintenance-using-machine-learning with Apache License 2.0 | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #14
Source File: utils.py From Carnets with BSD 3-Clause "New" or "Revised" License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #15
Source File: utils.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #16
Source File: utils.py From GraphicDesignPatternByPython with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #17
Source File: utils.py From Fluid-Designer with GNU General Public License v3.0 | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #18
Source File: utils.py From pySINDy with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #19
Source File: utils.py From coffeegrindsize with MIT License | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #20
Source File: utils.py From pySINDy with MIT License | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #21
Source File: utils.py From mxnet-lambda with Apache License 2.0 | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #22
Source File: utils.py From coffeegrindsize with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #23
Source File: utils.py From mxnet-lambda with Apache License 2.0 | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #24
Source File: utils.py From ImageFusion with MIT License | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #25
Source File: utils.py From elasticintel with GNU General Public License v3.0 | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #26
Source File: utils.py From ImageFusion with MIT License | 5 votes |
def default(self, node, **kw): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #27
Source File: utils.py From ImageFusion with MIT License | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #28
Source File: utils.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d
Example #29
Source File: utils.py From Splunking-Crime with GNU Affero General Public License v3.0 | 5 votes |
def default(self, node): raise SyntaxError("Unsupported source construct: %s" % node.__class__)
Example #30
Source File: utils.py From elasticintel with GNU General Public License v3.0 | 5 votes |
def get_include(): """ Return the directory that contains the NumPy \\*.h header files. Extension modules that need to compile against NumPy should use this function to locate the appropriate include directory. Notes ----- When using ``distutils``, for example in ``setup.py``. :: import numpy as np ... Extension('extension_name', ... include_dirs=[np.get_include()]) ... """ import numpy if numpy.show_config is None: # running from numpy source directory d = os.path.join(os.path.dirname(numpy.__file__), 'core', 'include') else: # using installed numpy core headers import numpy.core as core d = os.path.join(os.path.dirname(core.__file__), 'include') return d