file_path
stringlengths
32
153
content
stringlengths
0
3.14M
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_exec_command.py
import os import sys from tempfile import TemporaryFile from numpy.distutils import exec_command from numpy.distutils.exec_command import get_pythonexe from numpy.testing import tempdir, assert_, assert_warns # In python 3 stdout, stderr are text (unicode compliant) devices, so to # emulate them import StringIO from ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_log.py
import io import re from contextlib import redirect_stdout import pytest from numpy.distutils import log def setup_module(): f = io.StringIO() # changing verbosity also logs here, capture that with redirect_stdout(f): log.set_verbosity(2, force=True) # i.e. DEBUG def teardown_module(): log.s...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_from_template.py
from numpy.distutils.from_template import process_str from numpy.testing import assert_equal pyf_src = """ python module foo <_rd=real,double precision> interface subroutine <s,d>foosub(tol) <_rd>, intent(in,out) :: tol end subroutine <s,d>foosub end interface end python modul...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_system_info.py
import os import shutil import pytest from tempfile import mkstemp, mkdtemp from subprocess import Popen, PIPE from distutils.errors import DistutilsError from numpy.testing import assert_, assert_equal, assert_raises from numpy.distutils import ccompiler, customized_ccompiler from numpy.distutils.system_info import s...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/__init__.py
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_fcompiler_intel.py
import numpy.distutils.fcompiler from numpy.testing import assert_ intel_32bit_version_strings = [ ("Intel(R) Fortran Intel(R) 32-bit Compiler Professional for applications" "running on Intel(R) 32, Version 11.1", '11.1'), ] intel_64bit_version_strings = [ ("Intel(R) Fortran IA-64 Compiler Professional ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_fcompiler_nagfor.py
from numpy.testing import assert_ import numpy.distutils.fcompiler nag_version_strings = [('nagfor', 'NAG Fortran Compiler Release ' '6.2(Chiyoda) Build 6200', '6.2'), ('nagfor', 'NAG Fortran Compiler Release ' '6.1(Tozai) Build 6136', '6.1'), ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_mingw32ccompiler.py
import shutil import subprocess import sys import pytest from numpy.distutils import mingw32ccompiler @pytest.mark.skipif(sys.platform != 'win32', reason='win32 only test') def test_build_import(): '''Test the mingw32ccompiler.build_import_library, which builds a `python.a` from the MSVC `python.lib` '''...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_build_ext.py
'''Tests for numpy.distutils.build_ext.''' import os import subprocess import sys from textwrap import indent, dedent import pytest @pytest.mark.slow def test_multi_fortran_libs_link(tmp_path): ''' Ensures multiple "fake" static libraries are correctly linked. see gh-18295 ''' # We need to make s...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_ccompiler_opt_conf.py
import unittest from os import sys, path is_standalone = __name__ == '__main__' and __package__ is None if is_standalone: sys.path.append(path.abspath(path.join(path.dirname(__file__), ".."))) from ccompiler_opt import CCompilerOpt else: from numpy.distutils.ccompiler_opt import CCompilerOpt arch_compiler...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_fcompiler_gnu.py
from numpy.testing import assert_ import numpy.distutils.fcompiler g77_version_strings = [ ('GNU Fortran 0.5.25 20010319 (prerelease)', '0.5.25'), ('GNU Fortran (GCC 3.2) 3.2 20020814 (release)', '3.2'), ('GNU Fortran (GCC) 3.3.3 20040110 (prerelease) (Debian)', '3.3.3'), ('GNU Fortran (GCC) 3.3.3 (De...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_shell_utils.py
import pytest import subprocess import json import sys from numpy.distutils import _shell_utils argv_cases = [ [r'exe'], [r'path/exe'], [r'path\exe'], [r'\\server\path\exe'], [r'path to/exe'], [r'path to\exe'], [r'exe', '--flag'], [r'path/exe', '--flag'], [r'path\exe', '--flag'], ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_misc_util.py
from os.path import join, sep, dirname from numpy.distutils.misc_util import ( appendpath, minrelpath, gpaths, get_shared_lib_extension, get_info ) from numpy.testing import ( assert_, assert_equal ) ajoin = lambda *paths: join(*((sep,)+paths)) class TestAppendpath: def test_1(self): ass...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_fcompiler.py
from numpy.testing import assert_ import numpy.distutils.fcompiler customizable_flags = [ ('f77', 'F77FLAGS'), ('f90', 'F90FLAGS'), ('free', 'FREEFLAGS'), ('arch', 'FARCH'), ('debug', 'FDEBUG'), ('flags', 'FFLAGS'), ('linker_so', 'LDFLAGS'), ] def test_fcompiler_flags(monkeypatch): mo...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/distutils/tests/test_npy_pkg_config.py
import os from numpy.distutils.npy_pkg_config import read_config, parse_flags from numpy.testing import temppath, assert_ simple = """\ [meta] Name = foo Description = foo lib Version = 0.1 [default] cflags = -I/usr/include libs = -L/usr/lib """ simple_d = {'cflags': '-I/usr/include', 'libflags': '-L/usr/lib', ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/doc/constants.py
""" ========= Constants ========= .. currentmodule:: numpy NumPy includes several constants: %(constant_list)s """ # # Note: the docstring is autogenerated. # import re import textwrap # Maintain same format as in numpy.add_newdocs constants = [] def add_newdoc(module, name, doc): constants.append((name, doc)) ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/doc/__init__.py
import os ref_dir = os.path.join(os.path.dirname(__file__)) __all__ = sorted(f[:-3] for f in os.listdir(ref_dir) if f.endswith('.py') and not f.startswith('__')) for f in __all__: __import__(__name__ + '.' + f) del f, ref_dir __doc__ = """\ Topical documentation ===================== The following ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/doc/ufuncs.py
""" =================== Universal Functions =================== Ufuncs are, generally speaking, mathematical functions or operations that are applied element-by-element to the contents of an array. That is, the result in each output array element only depends on the value in the corresponding input array (or arrays) a...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/shape_base.pyi
from collections.abc import Sequence from typing import TypeVar, overload, Any, SupportsIndex from numpy import generic from numpy._typing import ArrayLike, NDArray, _ArrayLike _SCT = TypeVar("_SCT", bound=generic) _ArrayType = TypeVar("_ArrayType", bound=NDArray[Any]) __all__: list[str] @overload def atleast_1d(ar...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/multiarray.py
""" Create the numpy.core.multiarray namespace for backward compatibility. In v1.16 the multiarray and umath c-extension modules were merged into a single _multiarray_umath extension module. So we replicate the old namespace by importing from the extension module. """ import functools from . import overrides from . i...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/fromnumeric.pyi
import datetime as dt from collections.abc import Sequence from typing import Union, Any, overload, TypeVar, Literal, SupportsIndex from numpy import ( ndarray, number, uint64, int_, int64, intp, float16, bool_, floating, complexfloating, object_, generic, _OrderKACF...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/records.pyi
import os from collections.abc import Sequence, Iterable from typing import ( Any, TypeVar, overload, Protocol, ) from numpy import ( format_parser as format_parser, record as record, recarray as recarray, dtype, generic, void, _ByteOrder, _SupportsBuffer, ) from numpy....
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/setup_common.py
# Code common to build tools import copy import pathlib import sys import textwrap import warnings from numpy.distutils.misc_util import mingw32 #------------------- # Versioning support #------------------- # How to change C_API_VERSION ? # - increase C_API_VERSION value # - record the hash for the new C API wi...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/generate_numpy_api.py
import os import genapi from genapi import \ TypeApi, GlobalVarApi, FunctionApi, BoolValuesApi import numpy_api # use annotated api when running under cpychecker h_template = r""" #if defined(_MULTIARRAYMODULE) || defined(WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE) typedef struct { PyObject_H...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/records.py
""" Record Arrays ============= Record arrays expose the fields of structured arrays as properties. Most commonly, ndarrays contain elements of a single type, e.g. floats, integers, bools etc. However, it is possible for elements to be combinations of these using structured types, such as:: >>> a = np.array([(1, 2...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/numeric.pyi
from collections.abc import Callable, Sequence from typing import ( Any, overload, TypeVar, Literal, SupportsAbs, SupportsIndex, NoReturn, ) from typing_extensions import TypeGuard from numpy import ( ComplexWarning as ComplexWarning, generic, unsignedinteger, signedinteger,...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_internal.py
""" A place for internal code Some things are more easily handled Python. """ import ast import re import sys import platform import warnings from .multiarray import dtype, array, ndarray, promote_types try: import ctypes except ImportError: ctypes = None IS_PYPY = platform.python_implementation() == 'PyPy'...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/umath_tests.py
""" Shim for _umath_tests to allow a deprecation period for the new name. """ import warnings # 2018-04-04, numpy 1.15.0 warnings.warn(("numpy.core.umath_tests is an internal NumPy " "module and should not be imported. It will " "be removed in a future NumPy release."), cat...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/umath.py
""" Create the numpy.core.umath namespace for backward compatibility. In v1.16 the multiarray and umath c-extension modules were merged into a single _multiarray_umath extension module. So we replicate the old namespace by importing from the extension module. """ from . import _multiarray_umath from ._multiarray_umat...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/overrides.py
"""Implementation of __array_function__ overrides from NEP-18.""" import collections import functools import os from numpy.core._multiarray_umath import ( add_docstring, implement_array_function, _get_implementing_args) from numpy.compat._inspect import getargspec ARRAY_FUNCTION_ENABLED = bool( int(os.enviro...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_ufunc_config.py
""" Functions for changing global ufunc configuration This provides helpers which wrap `umath.geterrobj` and `umath.seterrobj` """ import collections.abc import contextlib from .overrides import set_module from .umath import ( UFUNC_BUFSIZE_DEFAULT, ERR_IGNORE, ERR_WARN, ERR_RAISE, ERR_CALL, ERR_PRINT, ERR_LO...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/fromnumeric.py
"""Module containing non-deprecated functions borrowed from Numeric. """ import functools import types import warnings import numpy as np from . import multiarray as mu from . import overrides from . import umath as um from . import numerictypes as nt from .multiarray import asarray, array, asanyarray, concatenate fr...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/defchararray.pyi
from typing import ( Literal as L, overload, TypeVar, Any, ) from numpy import ( chararray as chararray, dtype, str_, bytes_, int_, bool_, object_, _OrderKACF, ) from numpy._typing import ( NDArray, _ArrayLikeStr_co as U_co, _ArrayLikeBytes_co as S_co, _...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/arrayprint.py
"""Array printing function $Id: arrayprint.py,v 1.9 2005/09/13 13:58:44 teoliphant Exp $ """ __all__ = ["array2string", "array_str", "array_repr", "set_string_function", "set_printoptions", "get_printoptions", "printoptions", "format_float_positional", "format_float_scientific"] __docformat__ = ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_internal.pyi
from typing import Any, TypeVar, overload, Generic import ctypes as ct from numpy import ndarray from numpy.ctypeslib import c_intp _CastT = TypeVar("_CastT", bound=ct._CanCastTo) # Copied from `ctypes.cast` _CT = TypeVar("_CT", bound=ct._CData) _PT = TypeVar("_PT", bound=None | int) # TODO: Let the likes of `shape...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/numeric.py
import functools import itertools import operator import sys import warnings import numbers import numpy as np from . import multiarray from .multiarray import ( _fastCopyAndTranspose as fastCopyAndTranspose, ALLOW_THREADS, BUFSIZE, CLIP, MAXDIMS, MAY_SHARE_BOUNDS, MAY_SHARE_EXACT, RAISE, WRAP, arange, arr...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/getlimits.pyi
from numpy import ( finfo as finfo, iinfo as iinfo, ) __all__: list[str]
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/function_base.pyi
from typing import ( Literal as L, overload, Any, SupportsIndex, TypeVar, ) from numpy import floating, complexfloating, generic from numpy._typing import ( NDArray, DTypeLike, _DTypeLike, _ArrayLikeFloat_co, _ArrayLikeComplex_co, ) _SCT = TypeVar("_SCT", bound=generic) __all_...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_asarray.pyi
from collections.abc import Iterable from typing import TypeVar, Union, overload, Literal from numpy import ndarray from numpy._typing import DTypeLike, _SupportsArrayFunc _ArrayType = TypeVar("_ArrayType", bound=ndarray) _Requirements = Literal[ "C", "C_CONTIGUOUS", "CONTIGUOUS", "F", "F_CONTIGUOUS", "FORTR...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/getlimits.py
"""Machine limits for Float32 and Float64 and (long double) if available... """ __all__ = ['finfo', 'iinfo'] import warnings from ._machar import MachAr from .overrides import set_module from . import numeric from . import numerictypes as ntypes from .numeric import array, inf, NaN from .umath import log10, exp2, ne...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/einsumfunc.pyi
from collections.abc import Sequence from typing import TypeVar, Any, overload, Union, Literal from numpy import ( ndarray, dtype, bool_, unsignedinteger, signedinteger, floating, complexfloating, number, _OrderKACF, ) from numpy._typing import ( _ArrayLikeBool_co, _ArrayLik...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_asarray.py
""" Functions in the ``as*array`` family that promote array-likes into arrays. `require` fits this category despite its name not matching this pattern. """ from .overrides import ( array_function_dispatch, set_array_function_like_doc, set_module, ) from .multiarray import array, asanyarray __all__ = ["re...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/__init__.py
""" Contains the core of NumPy: ndarray, ufuncs, dtypes, etc. Please note that this module is private. All functions and objects are available in the main ``numpy`` namespace - use that instead. """ from numpy.version import version as __version__ import os import warnings # disables OpenBLAS affinity setting of ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_exceptions.py
""" Various richly-typed exceptions, that also help us deal with string formatting in python where it's easier. By putting the formatting in `__str__`, we also avoid paying the cost for users who silence the exceptions. """ from numpy.core.overrides import set_module def _unpack_tuple(tup): if len(tup) == 1: ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/einsumfunc.py
""" Implementation of optimized einsum. """ import itertools import operator from numpy.core.multiarray import c_einsum from numpy.core.numeric import asanyarray, tensordot from numpy.core.overrides import array_function_dispatch __all__ = ['einsum', 'einsum_path'] einsum_symbols = 'abcdefghijklmnopqrstuvwxyzABCDEF...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_dtype_ctypes.py
""" Conversion from ctypes to dtype. In an ideal world, we could achieve this through the PEP3118 buffer protocol, something like:: def dtype_from_ctypes_type(t): # needed to ensure that the shape of `t` is within memoryview.format class DummyStruct(ctypes.Structure): _fields_ = [('a',...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_add_newdocs.py
""" This is only meant to add docs to objects defined in C-extension modules. The purpose is to allow easier editing of the docstrings without requiring a re-compile. NOTE: Many of the methods of ndarray have corresponding functions. If you update these docstrings, please keep also the ones in core/fromnum...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/function_base.py
import functools import warnings import operator import types from . import numeric as _nx from .numeric import result_type, NaN, asanyarray, ndim from numpy.core.multiarray import add_docstring from numpy.core import overrides __all__ = ['logspace', 'linspace', 'geomspace'] array_function_dispatch = functools.part...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/memmap.py
from contextlib import nullcontext import numpy as np from .numeric import uint8, ndarray, dtype from numpy.compat import os_fspath, is_pathlib_path from numpy.core.overrides import set_module __all__ = ['memmap'] dtypedescr = dtype valid_filemodes = ["r", "c", "r+", "w+"] writeable_filemodes = ["r+", "w+"] mode_eq...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/setup.py
import os import sys import sysconfig import pickle import copy import warnings import textwrap import glob from os.path import join from numpy.distutils import log from distutils.dep_util import newer from sysconfig import get_config_var from numpy.compat import npy_load_module from setup_common import * # noqa: F40...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/arrayprint.pyi
from types import TracebackType from collections.abc import Callable from typing import Any, Literal, TypedDict, SupportsIndex # Using a private class is by no means ideal, but it is simply a consequence # of a `contextlib.context` returning an instance of aforementioned class from contextlib import _GeneratorContextM...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_add_newdocs_scalars.py
""" This file is separate from ``_add_newdocs.py`` so that it can be mocked out by our sphinx ``conf.py`` during doc builds, where we want to avoid showing platform-dependent information. """ from numpy.core import dtype from numpy.core import numerictypes as _numerictypes from numpy.core.function_base import add_newdo...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/numerictypes.pyi
import sys import types from collections.abc import Iterable from typing import ( Literal as L, Union, overload, Any, TypeVar, Protocol, TypedDict, ) from numpy import ( ndarray, dtype, generic, bool_, ubyte, ushort, uintc, uint, ulonglong, byte, ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/defchararray.py
""" This module contains a set of functions for vectorized string operations and methods. .. note:: The `chararray` class exists for backwards compatibility with Numarray, it is not recommended for new development. Starting from numpy 1.4, if one needs arrays of strings, it is recommended to use arrays of ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/multiarray.pyi
# TODO: Sort out any and all missing functions in this namespace import os import datetime as dt from collections.abc import Sequence, Callable, Iterable from typing import ( Literal as L, Any, overload, TypeVar, SupportsIndex, final, Final, Protocol, ) from numpy import ( # Re-exp...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/cversions.py
"""Simple script to compute the api hash of the current API. The API has is defined by numpy_api_order and ufunc_api_order. """ from os.path import dirname from code_generators.genapi import fullapi_hash from code_generators.numpy_api import full_api if __name__ == '__main__': curdir = dirname(__file__) pri...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_type_aliases.pyi
from typing import TypedDict from numpy import generic, signedinteger, unsignedinteger, floating, complexfloating class _SCTypes(TypedDict): int: list[type[signedinteger]] uint: list[type[unsignedinteger]] float: list[type[floating]] complex: list[type[complexfloating]] others: list[type] sctypeD...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/memmap.pyi
from numpy import memmap as memmap __all__: list[str]
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_ufunc_config.pyi
from collections.abc import Callable from typing import Any, Literal, TypedDict from numpy import _SupportsWrite _ErrKind = Literal["ignore", "warn", "raise", "call", "print", "log"] _ErrFunc = Callable[[str, int], Any] class _ErrDict(TypedDict): divide: _ErrKind over: _ErrKind under: _ErrKind invali...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_dtype.py
""" A place for code to be called from the implementation of np.dtype String handling is much easier to do correctly in python. """ import numpy as np _kind_to_stem = { 'u': 'uint', 'i': 'int', 'c': 'complex', 'f': 'float', 'b': 'bool', 'V': 'void', 'O': 'object', 'M': 'datetime', ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/__init__.pyi
# NOTE: The `np.core` namespace is deliberately kept empty due to it # being private (despite the lack of leading underscore)
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_machar.py
""" Machine arithmetic - determine the parameters of the floating-point arithmetic system Author: Pearu Peterson, September 2003 """ __all__ = ['MachAr'] from numpy.core.fromnumeric import any from numpy.core._ufunc_config import errstate from numpy.core.overrides import set_module # Need to speed this up...especia...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/shape_base.py
__all__ = ['atleast_1d', 'atleast_2d', 'atleast_3d', 'block', 'hstack', 'stack', 'vstack'] import functools import itertools import operator import warnings from . import numeric as _nx from . import overrides from .multiarray import array, asanyarray, normalize_axis_index from . import fromnumeric as _fro...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_type_aliases.py
""" Due to compatibility, numpy has a very large number of different naming conventions for the scalar types (those subclassing from `numpy.generic`). This file produces a convoluted set of dictionaries mapping names to types, and sometimes other mappings too. .. data:: allTypes A dictionary of names to types that...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/numerictypes.py
""" numerictypes: Define the numeric type objects This module is designed so "from numerictypes import \\*" is safe. Exported symbols include: Dictionary with all registered number types (including aliases): sctypeDict Type objects (not all will be available, depends on platform): see variable sctypes ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_methods.py
""" Array methods which are called by both the C-code for the method and the Python code for the NumPy-namespace function """ import warnings from contextlib import nullcontext from numpy.core import multiarray as mu from numpy.core import umath as um from numpy.core.multiarray import asanyarray from numpy.core impor...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/_string_helpers.py
""" String-handling utilities to avoid locale-dependence. Used primarily to generate type name aliases. """ # "import string" is costly to import! # Construct the translation tables directly # "A" = chr(65), "a" = chr(97) _all_chars = [chr(_m) for _m in range(256)] _ascii_upper = _all_chars[65:65+26] _ascii_lower = ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_cpu.h
/* * This set (target) cpu specific macros: * - Possible values: * NPY_CPU_X86 * NPY_CPU_AMD64 * NPY_CPU_PPC * NPY_CPU_PPC64 * NPY_CPU_PPC64LE * NPY_CPU_SPARC * NPY_CPU_S390 * NPY_CPU_IA64 * ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/old_defines.h
/* This header is deprecated as of NumPy 1.7 */ #ifndef NUMPY_CORE_INCLUDE_NUMPY_OLD_DEFINES_H_ #define NUMPY_CORE_INCLUDE_NUMPY_OLD_DEFINES_H_ #if defined(NPY_NO_DEPRECATED_API) && NPY_NO_DEPRECATED_API >= NPY_1_7_API_VERSION #error The header "old_defines.h" is deprecated as of NumPy 1.7. #endif #define NDARRAY_VER...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/experimental_dtype_api.h
/* * This header exports the new experimental DType API as proposed in * NEPs 41 to 43. For background, please check these NEPs. Otherwise, * this header also serves as documentation for the time being. * * Please do not hesitate to contact @seberg with questions. This is * developed together with https://gith...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/__ufunc_api.h
#ifdef _UMATHMODULE extern NPY_NO_EXPORT PyTypeObject PyUFunc_Type; extern NPY_NO_EXPORT PyTypeObject PyUFunc_Type; NPY_NO_EXPORT PyObject * PyUFunc_FromFuncAndData \ (PyUFuncGenericFunction *, void **, char *, int, int, int, int, const char *, const char *, int); NPY_NO_EXPORT int PyUFunc_RegisterLoopForT...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/arrayobject.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ #define NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ #define Py_ARRAYOBJECT_H #include "ndarrayobject.h" #include "npy_interrupt.h" #ifdef NPY_NO_PREFIX #include "noprefix.h" #endif #endif /* NUMPY_CORE_INCLUDE_NUMPY_ARRAYOBJECT_H_ */
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_endian.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_ENDIAN_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NPY_ENDIAN_H_ /* * NPY_BYTE_ORDER is set to the same value as BYTE_ORDER set by glibc in * endian.h */ #if defined(NPY_HAVE_ENDIAN_H) || defined(NPY_HAVE_SYS_ENDIAN_H) /* Use endian.h if available */ #if defined(NPY_HAVE_ENDIA...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/_numpyconfig.h
#define NPY_SIZEOF_SHORT SIZEOF_SHORT #define NPY_SIZEOF_INT SIZEOF_INT #define NPY_SIZEOF_LONG SIZEOF_LONG #define NPY_SIZEOF_FLOAT 4 #define NPY_SIZEOF_COMPLEX_FLOAT 8 #define NPY_SIZEOF_DOUBLE 8 #define NPY_SIZEOF_COMPLEX_DOUBLE 16 #define NPY_SIZEOF_LONGDOUBLE 8 #define NPY_SIZEOF_COMPLEX_LONGDOUBLE 16 #define NPY_...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_math.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NPY_MATH_H_ #include <numpy/npy_common.h> #include <math.h> #ifdef __SUNPRO_CC #include <sunmath.h> #endif /* By adding static inline specifiers to npy_math function definitions when appropriate, compiler is given the opportunity to opt...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_3kcompat.h
/* * This is a convenience header file providing compatibility utilities * for supporting different minor versions of Python 3. * It was originally used to support the transition from Python 2, * hence the "3k" naming. * * If you want to use this for your own projects, it's recommended to make a * copy of it. Al...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/ndarraytypes.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NDARRAYTYPES_H_ #include "npy_common.h" #include "npy_endian.h" #include "npy_cpu.h" #include "utils.h" #define NPY_NO_EXPORT NPY_VISIBILITY_HIDDEN /* Only use thread if configured in config and python supports it */ #if defined WITH_T...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_1_7_deprecated_api.h
#ifndef NPY_DEPRECATED_INCLUDES #error "Should never include npy_*_*_deprecated_api directly." #endif #ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_1_7_DEPRECATED_API_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NPY_1_7_DEPRECATED_API_H_ /* Emit a warning if the user did not specifically request the old API */ #ifndef NPY_NO_DEPRECATE...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/arrayscalars.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_ARRAYSCALARS_H_ #define NUMPY_CORE_INCLUDE_NUMPY_ARRAYSCALARS_H_ #ifndef _MULTIARRAYMODULE typedef struct { PyObject_HEAD npy_bool obval; } PyBoolScalarObject; #endif typedef struct { PyObject_HEAD signed char obval; } PyByteScalarObject; typedef str...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/__multiarray_api.h
#if defined(_MULTIARRAYMODULE) || defined(WITH_CPYCHECKER_STEALS_REFERENCE_TO_ARG_ATTRIBUTE) typedef struct { PyObject_HEAD npy_bool obval; } PyBoolScalarObject; extern NPY_NO_EXPORT PyTypeObject PyArrayMapIter_Type; extern NPY_NO_EXPORT PyTypeObject PyArrayNeighborhoodIter_Type; extern NPY_NO_EXPORT...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/noprefix.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NOPREFIX_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NOPREFIX_H_ /* * You can directly include noprefix.h as a backward * compatibility measure */ #ifndef NPY_NO_PREFIX #include "ndarrayobject.h" #include "npy_interrupt.h" #endif #define SIGSETJMP NPY_SIGSETJMP #define SIGLONGJMP NPY_SI...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_interrupt.h
/* * This API is only provided because it is part of publicly exported * headers. Its use is considered DEPRECATED, and it will be removed * eventually. * (This includes the _PyArray_SigintHandler and _PyArray_GetSigintBuf * functions which are however, public API, and not headers.) * * Instead of using these no...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/utils.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_ #define NUMPY_CORE_INCLUDE_NUMPY_UTILS_H_ #ifndef __COMP_NPY_UNUSED #if defined(__GNUC__) #define __COMP_NPY_UNUSED __attribute__ ((__unused__)) #elif defined(__ICC) #define __COMP_NPY_UNUSED __attribute__ ((__unused__)) #elif defined(__clang__) ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/multiarray_api.txt
=========== NumPy C-API =========== :: unsigned int PyArray_GetNDArrayCVersion(void ) Included at the very first so not auto-grabbed and thus not labeled. :: int PyArray_SetNumericOps(PyObject *dict) Set internal structure with number functions that all arrays will use :: PyObject * PyArray_GetNume...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/ndarrayobject.h
/* * DON'T INCLUDE THIS DIRECTLY. */ #ifndef NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NDARRAYOBJECT_H_ #ifdef __cplusplus extern "C" { #endif #include <Python.h> #include "ndarraytypes.h" /* Includes the "function" C-API -- these are all stored in a list of pointers --- one for...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_os.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NPY_OS_H_ #if defined(linux) || defined(__linux) || defined(__linux__) #define NPY_OS_LINUX #elif defined(__FreeBSD__) || defined(__NetBSD__) || \ defined(__OpenBSD__) || defined(__DragonFly__) #define NPY_OS_BSD #ifdef...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/numpyconfig.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_NUMPYCONFIG_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NPY_NUMPYCONFIG_H_ #include "_numpyconfig.h" /* * On Mac OS X, because there is only one configuration stage for all the archs * in universal builds, any macro which depends on the arch needs to be * hardcoded */ #ifdef __APPLE__...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/ufuncobject.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_UFUNCOBJECT_H_ #define NUMPY_CORE_INCLUDE_NUMPY_UFUNCOBJECT_H_ #include <numpy/npy_math.h> #include <numpy/npy_common.h> #ifdef __cplusplus extern "C" { #endif /* * The legacy generic inner loop for a standard element-wise or * generalized ufunc. */ typedef void (*PyUFuncGenericFu...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_common.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_NPY_COMMON_H_ #define NUMPY_CORE_INCLUDE_NUMPY_NPY_COMMON_H_ /* need Python.h for npy_intp, npy_uintp */ #include <Python.h> /* numpconfig.h is auto-generated */ #include "numpyconfig.h" #ifdef HAVE_NPY_CONFIG_H #include <npy_config.h> #endif /* * using static inline modifiers when ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/oldnumeric.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_OLDNUMERIC_H_ #define NUMPY_CORE_INCLUDE_NUMPY_OLDNUMERIC_H_ /* FIXME -- this file can be deleted? */ #include "arrayobject.h" #ifndef PYPY_VERSION #ifndef REFCOUNT # define REFCOUNT NPY_REFCOUNT # define MAX_ELSIZE 16 #endif #endif #define PyArray_UNSIGNED_TYPES #define PyArray_S...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/halffloat.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_ #define NUMPY_CORE_INCLUDE_NUMPY_HALFFLOAT_H_ #include <Python.h> #include <numpy/npy_math.h> #ifdef __cplusplus extern "C" { #endif /* * Half-precision routines */ /* Conversions */ float npy_half_to_float(npy_half h); double npy_half_to_double(npy_half h); npy_half ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/_neighborhood_iterator_imp.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY__NEIGHBORHOOD_IMP_H_ #error You should not include this header directly #endif /* * Private API (here for inline) */ static NPY_INLINE int _PyArrayNeighborhoodIter_IncrCoord(PyArrayNeighborhoodIterObject* iter); /* * Update to next item of the iterator * * Note: this simply increm...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/ufunc_api.txt
================= NumPy Ufunc C-API ================= :: PyObject * PyUFunc_FromFuncAndData(PyUFuncGenericFunction *func, void **data, char *types, int ntypes, int nin, int nout, int identity, const char *name, const char *doc, int unus...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/npy_no_deprecated_api.h
/* * This include file is provided for inclusion in Cython *.pyd files where * one would like to define the NPY_NO_DEPRECATED_API macro. It can be * included by * * cdef extern from "npy_no_deprecated_api.h": pass * */ #ifndef NPY_NO_DEPRECATED_API /* put this check here since there may be multiple includes in ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/libdivide/libdivide.h
// libdivide.h - Optimized integer division // https://libdivide.com // // Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com> // Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com> // // libdivide is dual-licensed under the Boost or zlib licenses. // You may use libdivide under the ter...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/libdivide/LICENSE.txt
zlib License ------------ Copyright (C) 2010 - 2019 ridiculous_fish, <libdivide@ridiculousfish.com> Copyright (C) 2016 - 2019 Kim Walisch, <kim.walisch@gmail.com> This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages aris...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/random/distributions.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_ #define NUMPY_CORE_INCLUDE_NUMPY_RANDOM_DISTRIBUTIONS_H_ #ifdef __cplusplus extern "C" { #endif #include <Python.h> #include "numpy/npy_common.h" #include <stddef.h> #include <stdbool.h> #include <stdint.h> #include "numpy/npy_math.h" #include "numpy/random/bi...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/include/numpy/random/bitgen.h
#ifndef NUMPY_CORE_INCLUDE_NUMPY_RANDOM_BITGEN_H_ #define NUMPY_CORE_INCLUDE_NUMPY_RANDOM_BITGEN_H_ #pragma once #include <stddef.h> #include <stdbool.h> #include <stdint.h> /* Must match the declaration in numpy/random/<any>.pxd */ typedef struct bitgen { void *state; uint64_t (*next_uint64)(void *st); uint32...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/tests/test_simd.py
# NOTE: Please avoid the use of numpy.testing since NPYV intrinsics # may be involved in their functionality. import pytest, math, re import itertools from numpy.core._simd import targets from numpy.core._multiarray_umath import __cpu_baseline__ class _Test_Utility: # submodule of the desired SIMD extension, e.g. ...
omniverse-code/kit/exts/omni.kit.pip_archive/pip_prebundle/numpy/core/tests/test_errstate.py
import pytest import sysconfig import numpy as np from numpy.testing import assert_, assert_raises # The floating point emulation on ARM EABI systems lacking a hardware FPU is # known to be buggy. This is an attempt to identify these hosts. It may not # catch all possible cases, but it catches the known cases of gh-4...