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 ? Mise en oeuvre d'IHM
avec Qt et PySide6
Voir le programme détaillé
Module « numpy.matlib »

Fonction matrix_transpose - module numpy.matlib

Signature de la fonction matrix_transpose

def matrix_transpose(x) 

Description

help(numpy.matlib.matrix_transpose)

Transposes a matrix (or a stack of matrices) ``x``.

This function is Array API compatible.

Parameters
----------
x : array_like
    Input array having shape (..., M, N) and whose two innermost
    dimensions form ``MxN`` matrices.

Returns
-------
out : ndarray
    An array containing the transpose for each matrix and having shape
    (..., N, M).

See Also
--------
transpose : Generic transpose method.

Examples
--------
>>> import numpy as np
>>> np.matrix_transpose([[1, 2], [3, 4]])
array([[1, 3],
       [2, 4]])

>>> np.matrix_transpose([[[1, 2], [3, 4]], [[5, 6], [7, 8]]])
array([[[1, 3],
        [2, 4]],
       [[5, 7],
        [6, 8]]])



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é