Langue

ScriptIntrinsicBLAS.CHPR(Int32, Single, Allocation, Int32, Allocation) Méthode

Définition

CHPR effectue l’opération de classement A := alphaxx**H + A

[Android.Runtime.Register("CHPR", "(IFLandroid/renderscript/Allocation;ILandroid/renderscript/Allocation;)V", "", ApiSince=23)]
public void CHPR(int Uplo, float alpha, Android.Renderscripts.Allocation? X, int incX, Android.Renderscripts.Allocation? Ap);
[<Android.Runtime.Register("CHPR", "(IFLandroid/renderscript/Allocation;ILandroid/renderscript/Allocation;)V", "", ApiSince=23)>]
member this.CHPR : int * single * Android.Renderscripts.Allocation * int * Android.Renderscripts.Allocation -> unit

Paramètres

Uplo
Int32

Spécifie si la partie triangulaire supérieure ou inférieure doit être fournie sous forme emballée.

alpha
Single

Alpha scalaire.

X
Allocation

L’allocation d’entrée contient le vecteur x, le type Element#F32_2d’éléments pris en charge.

incX
Int32

L’incrément pour les éléments du vecteur x doit être supérieur à zéro.

Ap
Allocation

L’allocation d’entrée contient la matrice A, type Element#F32_2d’éléments pris en charge.

Attributs

Remarques

CHPR effectue l’opération de classement A := alpha*x*x**H + A

Détails : http://www.netlib.org/lapack/explore-html/db/dcd/chpr_8f.html

Remarque : Pour une matrice N*N, l’allocation d’entrée doit être une allocation 1D de taille dimX = N*(N+1)/2, la sous-routine suivante peut être un exemple montrant comment convertir une matrice trianglar supérieure 'a' en matrice empaquetée 'b'. k = 0 pour i dans la plage(0, n) : pour j in range(i, n) : b[k++] = a[i, j]

Java documentation pour android.renderscript.ScriptIntrinsicBLAS.CHPR(int, float, android.renderscript.Allocation, int, android.renderscript.Allocation).

Les parties de cette page sont des modifications basées sur le travail créé et partagé par Android Open Source et utilisées en fonction des termes décrits dans la Creative Commons 2.5 Attribution License.

S’applique à