語言

ScriptIntrinsicBLAS.CGBMV 方法

定義

CGBMV 執行其中一個矩陣向量運算 y := alphaAx + betay 或 y := alphaATx + betay 或 y := alpha*AHx + βy

[Android.Runtime.Register("CGBMV", "(IIILandroid/renderscript/Float2;Landroid/renderscript/Allocation;Landroid/renderscript/Allocation;ILandroid/renderscript/Float2;Landroid/renderscript/Allocation;I)V", "", ApiSince=23)]
public void CGBMV(int TransA, int KL, int KU, Android.Renderscripts.Float2? alpha, Android.Renderscripts.Allocation? A, Android.Renderscripts.Allocation? X, int incX, Android.Renderscripts.Float2? beta, Android.Renderscripts.Allocation? Y, int incY);
[<Android.Runtime.Register("CGBMV", "(IIILandroid/renderscript/Float2;Landroid/renderscript/Allocation;Landroid/renderscript/Allocation;ILandroid/renderscript/Float2;Landroid/renderscript/Allocation;I)V", "", ApiSince=23)>]
member this.CGBMV : int * int * int * Android.Renderscripts.Float2 * Android.Renderscripts.Allocation * Android.Renderscripts.Allocation * int * Android.Renderscripts.Float2 * Android.Renderscripts.Allocation * int -> unit

參數

TransA
Int32

應用於矩陣 A 的移調類型。

KL
Int32

矩陣 A 的子對角線數量。

KU
Int32

矩陣 A 的超對角線數。

alpha
Float2

標量的阿爾法。

A
Allocation

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

X
Allocation

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

incX
Int32

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

beta
Float2

標量貝塔。

Y
Allocation

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

incY
Int32

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

屬性

備註

CGBMV 執行矩陣向量運算之一 y := alpha*A*x + beta*y 或 y := alpha*A**T*x + beta*y 或 y := alpha*A**H*x + beta*y

詳細資訊:http://www.netlib.org/lapack/explore-html/d0/d75/cgbmv_8f.html

注意:對於 M*N 矩陣,輸入配置大小也應為 M*N(dimY = M, dimX = N),但僅參考區域 M*(KL+KU+1)。 以下子程式是一個範例,展示如何將原始矩陣 'a' 轉換成基於列的帶狀矩陣 'b'。 當 i 在範圍(0, m)時:對於 j 在範圍內(max(0, i-kl), min(i+ku+1, n)): b[i, j-i+kl] = a[i, j]

Java 文件 android.renderscript.ScriptIntrinsicBLAS.CGBMV(int, int, int, android.renderscript.Float2, android.renderscript.Allocation, android.renderscript.Allocation, int, android.renderscript.Float2, android.renderscript.Allocation, int)。

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

適用於