ScriptIntrinsicBLAS.ZHPMV 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
ZHPMV 會執行矩陣向量運算 y := alphaAx + beta*y
[Android.Runtime.Register("ZHPMV", "(ILandroid/renderscript/Double2;Landroid/renderscript/Allocation;Landroid/renderscript/Allocation;ILandroid/renderscript/Double2;Landroid/renderscript/Allocation;I)V", "", ApiSince=23)]
public void ZHPMV (int Uplo, Android.Renderscripts.Double2? alpha, Android.Renderscripts.Allocation? Ap, Android.Renderscripts.Allocation? X, int incX, Android.Renderscripts.Double2? beta, Android.Renderscripts.Allocation? Y, int incY);
[<Android.Runtime.Register("ZHPMV", "(ILandroid/renderscript/Double2;Landroid/renderscript/Allocation;Landroid/renderscript/Allocation;ILandroid/renderscript/Double2;Landroid/renderscript/Allocation;I)V", "", ApiSince=23)>]
member this.ZHPMV : int * Android.Renderscripts.Double2 * Android.Renderscripts.Allocation * Android.Renderscripts.Allocation * int * Android.Renderscripts.Double2 * Android.Renderscripts.Allocation * int -> unit
參數
- Uplo
- Int32
指定矩陣 A 的上半角或下三角形部分是否以包裝形式提供。
- alpha
- Double2
純量Alpha。
- Ap
- Allocation
輸入配置包含矩陣 A,支援的元素類型 Element#F64_2
。
輸入設定包含向量 x,支援的元素類型 Element#F64_2
。
- incX
- Int32
向量 x 元素的遞增必須大於零。
- beta
- Double2
純量 Beta。
輸入設定包含向量 y,支援的元素類型 Element#F64_2
。
- incY
- Int32
向量 y 元素的遞增必須大於零。
- 屬性
備註
ZHPMV 會執行矩陣向量運算 y := alpha*A*x + beta*y
細節: http://www.netlib.org/lapack/explore-html/d0/d60/zhpmv_8f.html
注意:對於 N*N 矩陣,輸入配置應該是大小 dimX = N*(N+1)/2 的 1D 配置,下列子程式可以示範如何將 UPPER 三角矩陣 'a' 轉換成包裝矩陣 'b'。 k = 0 for i in range(0, n): for j in range(i, n): b[k++] = a[i, j]
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。