Langue

ScriptIntrinsicBLAS.SSPMV Méthode

Définition

SSPMV effectue l’opération matrice-vector y := alphaAx + beta*y

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

Paramètres

Uplo
Int32

Spécifie si la partie triangulaire supérieure ou inférieure de la matrice A est fournie sous forme emballée.

alpha
Single

Alpha scalaire.

Ap
Allocation

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

X
Allocation

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

incX
Int32

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

beta
Single

Bêta scalaire.

Y
Allocation

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

incY
Int32

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

Attributs

Remarques

SSPMV effectue l’opération matrix-vector y := alpha*A*x + beta*y

Détails : http://www.netlib.org/lapack/explore-html/d8/d68/sspmv_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.SSPMV(int, float, android.renderscript.Allocation, android.renderscript.Allocation, int, float, android.renderscript.Allocation, int).

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 à