Participer au site avec un Tip
Rechercher
 

Améliorations / Corrections

Vous avez des améliorations (ou des corrections) à proposer pour ce document : je vous remerçie par avance de m'en faire part, cela m'aide à améliorer le site.

Emplacement :

Description des améliorations :

Vous êtes un professionnel et vous avez besoin d'une formation ? Calcul scientifique
avec Python
Voir le programme détaillé
Module « numpy.matlib »

Fonction isdtype - module numpy.matlib

Signature de la fonction isdtype

def isdtype(dtype, kind) 

Description

help(numpy.matlib.isdtype)

Determine if a provided dtype is of a specified data type ``kind``.

This function only supports built-in NumPy's data types.
Third-party dtypes are not yet supported.

Parameters
----------
dtype : dtype
    The input dtype.
kind : dtype or str or tuple of dtypes/strs.
    dtype or dtype kind. Allowed dtype kinds are:
    * ``'bool'`` : boolean kind
    * ``'signed integer'`` : signed integer data types
    * ``'unsigned integer'`` : unsigned integer data types
    * ``'integral'`` : integer data types
    * ``'real floating'`` : real-valued floating-point data types
    * ``'complex floating'`` : complex floating-point data types
    * ``'numeric'`` : numeric data types

Returns
-------
out : bool

See Also
--------
issubdtype

Examples
--------
>>> import numpy as np
>>> np.isdtype(np.float32, np.float64)
False
>>> np.isdtype(np.float32, "real floating")
True
>>> np.isdtype(np.complex128, ("real floating", "complex floating"))
True



Vous êtes un professionnel et vous avez besoin d'une formation ? RAG (Retrieval-Augmented Generation)
et Fine Tuning d'un LLM
Voir le programme détaillé