ScriptIntrinsicBLAS.SSPMV Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.
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.
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]
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.