語言

ScriptIntrinsicBLAS.DSPMV 方法

定義

DSPMV 執行矩陣向量運算 y := alphaAx + beta*y

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

參數

Uplo
Int32

規定矩陣 A 的上部或下部三角形部分是以填裝形式供應。

alpha
Double

標量的阿爾法。

Ap
Allocation

輸入配置包含矩陣 A,支援元素類型 Element#F64為 。

X
Allocation

輸入配置包含向量 x,支援元素類型 Element#F64。

incX
Int32

向量 x 元素的增量必須大於零。

beta
Double

標量貝塔。

Y
Allocation

輸入配置包含向量 y,支援元素類型 Element#F64。

incY
Int32

向量 y 元素的增量必須大於零。

屬性

備註

DSPMV 執行矩陣向量運算 y := alpha*A*x + beta*y

詳細資訊:http://www.netlib.org/lapack/explore-html/d4/d85/dspmv_8f.html

注意:對於 N*N 矩陣,輸入配置應為大小為 dimX = N*(N+1)/2 的一維配置。以下子程式示範如何將 UPPER 三角矩陣 'a' 轉換為填充矩陣 'b'。 k = 0,i在range(0, n)中;對於J在range(i, n): b[k++] = a[i, j]

Java 文件 android.renderscript.ScriptIntrinsicBLAS.DSPMV(int, double, android.renderscript.Allocation, android.renderscript.Allocation, int, double, android.renderscript.Allocation, int)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於