$32 GRAYBYTE WORDPRESS FILE MANAGER $20

SERVER : vnpttt-amd7f72-h1.vietnix.vn #1 SMP Fri May 24 12:42:50 UTC 2024
SERVER IP : 103.200.23.149 | ADMIN IP 216.73.216.22
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/cloudlinux/venv/lib/python3.11/site-packages/numpy/

HOME
Current File : /opt/cloudlinux/venv/lib/python3.11/site-packages/numpy//dtypes.py
"""
DType classes and utility (:mod:`numpy.dtypes`)
===============================================

This module is home to specific dtypes related functionality and their classes.
For more general information about dtypes, also see `numpy.dtype` and
:ref:`arrays.dtypes`.

Similar to the builtin ``types`` module, this submodule defines types (classes)
that are not widely used directly.

.. versionadded:: NumPy 1.25

    The dtypes module is new in NumPy 1.25.  Previously DType classes were
    only accessible indirectly.


DType classes
-------------

The following are the classes of the corresponding NumPy dtype instances and
NumPy scalar types.  The classes can be used in ``isinstance`` checks and can
also be instantiated or used directly.  Direct use of these classes is not
typical, since their scalar counterparts (e.g. ``np.float64``) or strings
like ``"float64"`` can be used.

.. list-table::
    :header-rows: 1

    * - Group
      - DType class

    * - Boolean
      - ``BoolDType``

    * - Bit-sized integers
      - ``Int8DType``, ``UInt8DType``, ``Int16DType``, ``UInt16DType``,
        ``Int32DType``, ``UInt32DType``, ``Int64DType``, ``UInt64DType``

    * - C-named integers (may be aliases)
      - ``ByteDType``, ``UByteDType``, ``ShortDType``, ``UShortDType``,
        ``IntDType``, ``UIntDType``, ``LongDType``, ``ULongDType``,
        ``LongLongDType``, ``ULongLongDType``

    * - Floating point
      - ``Float16DType``, ``Float32DType``, ``Float64DType``,
        ``LongDoubleDType``

    * - Complex
      - ``Complex64DType``, ``Complex128DType``, ``CLongDoubleDType``

    * - Strings
      - ``BytesDType``, ``BytesDType``

    * - Times
      - ``DateTime64DType``, ``TimeDelta64DType``

    * - Others
      - ``ObjectDType``, ``VoidDType``

"""

__all__ = []


def _add_dtype_helper(DType, alias):
    # Function to add DTypes a bit more conveniently without channeling them
    # through `numpy.core._multiarray_umath` namespace or similar.
    from numpy import dtypes

    setattr(dtypes, DType.__name__, DType)
    __all__.append(DType.__name__)

    if alias:
        alias = alias.removeprefix("numpy.dtypes.")
        setattr(dtypes, alias, DType)
        __all__.append(alias)

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
17 Dec 2025 3.08 AM
root / root
0755
__pycache__
--
14 Aug 2025 9.25 PM
root / root
0755
_pyinstaller
--
14 Aug 2025 9.24 PM
root / root
0755
_typing
--
14 Aug 2025 9.24 PM
root / root
0755
_utils
--
14 Aug 2025 9.24 PM
root / root
0755
array_api
--
14 Aug 2025 9.24 PM
root / root
0755
compat
--
14 Aug 2025 9.24 PM
root / root
0755
core
--
14 Aug 2025 9.24 PM
root / root
0755
distutils
--
14 Aug 2025 9.24 PM
root / root
0755
doc
--
14 Aug 2025 9.24 PM
root / root
0755
f2py
--
14 Aug 2025 9.24 PM
root / root
0755
fft
--
14 Aug 2025 9.24 PM
root / root
0755
lib
--
14 Aug 2025 9.24 PM
root / root
0755
linalg
--
14 Aug 2025 9.24 PM
root / root
0755
ma
--
14 Aug 2025 9.24 PM
root / root
0755
matrixlib
--
14 Aug 2025 9.24 PM
root / root
0755
polynomial
--
14 Aug 2025 9.24 PM
root / root
0755
random
--
14 Aug 2025 9.24 PM
root / root
0755
testing
--
14 Aug 2025 9.24 PM
root / root
0755
tests
--
14 Aug 2025 9.24 PM
root / root
0755
typing
--
14 Aug 2025 9.24 PM
root / root
0755
LICENSE.txt
44.621 KB
17 Apr 2025 8.10 PM
root / root
0644
__config__.py
5.022 KB
17 Apr 2025 8.10 PM
root / root
0644
__init__.cython-30.pxd
35.814 KB
17 Apr 2025 8.10 PM
root / root
0644
__init__.pxd
34.222 KB
17 Apr 2025 8.10 PM
root / root
0644
__init__.py
16.099 KB
17 Apr 2025 8.10 PM
root / root
0644
__init__.pyi
150.111 KB
17 Apr 2025 8.10 PM
root / root
0644
_distributor_init.py
0.323 KB
17 Apr 2025 8.10 PM
root / root
0644
_globals.py
3.021 KB
17 Apr 2025 8.10 PM
root / root
0644
_pytesttester.py
6.512 KB
17 Apr 2025 8.10 PM
root / root
0644
_pytesttester.pyi
0.478 KB
17 Apr 2025 8.10 PM
root / root
0644
_version.py
0.486 KB
17 Apr 2025 8.10 PM
root / root
0644
conftest.py
4.515 KB
17 Apr 2025 8.10 PM
root / root
0644
ctypeslib.py
16.843 KB
17 Apr 2025 8.10 PM
root / root
0644
ctypeslib.pyi
7.785 KB
17 Apr 2025 8.10 PM
root / root
0644
dtypes.py
2.177 KB
17 Apr 2025 8.10 PM
root / root
0644
dtypes.pyi
1.284 KB
17 Apr 2025 8.10 PM
root / root
0644
exceptions.py
7.167 KB
17 Apr 2025 8.10 PM
root / root
0644
exceptions.pyi
0.586 KB
17 Apr 2025 8.10 PM
root / root
0644
matlib.py
10.22 KB
17 Apr 2025 8.10 PM
root / root
0644
py.typed
0 KB
17 Apr 2025 8.10 PM
root / root
0644
setup.py
1.11 KB
17 Apr 2025 8.10 PM
root / root
0644
version.py
0.608 KB
17 Apr 2025 8.10 PM
root / root
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF