Udostępnij za pośrednictwem


ScriptIntrinsicBLAS.CGBMV Method

Definition

CGBMV performs one of the matrix-vector operations y := alphaAx + betay or y := alphaATx + betay or y := alpha*AHx + betay

[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

Parameters

TransA
Int32

The type of transpose applied to matrix A.

KL
Int32

The number of sub-diagonals of the matrix A.

KU
Int32

The number of super-diagonals of the matrix A.

alpha
Float2

The scalar alpha.

A
Allocation

The input allocation contains the band matrix A, supported elements type Element#F32_2.

X
Allocation

The input allocation contains vector x, supported elements type Element#F32_2.

incX
Int32

The increment for the elements of vector x, must be larger than zero.

beta
Float2

The scalar beta.

Y
Allocation

The input allocation contains vector y, supported elements type Element#F32_2.

incY
Int32

The increment for the elements of vector y, must be larger than zero.

Attributes

Remarks

CGBMV performs one of the matrix-vector operations y := alpha*A*x + beta*y or y := alpha*A**T*x + beta*y or y := alpha*A**H*x + beta*y

Details: http://www.netlib.org/lapack/explore-html/d0/d75/cgbmv_8f.html

Note: For a M*N matrix, the input Allocation should also be of size M*N (dimY = M, dimX = N), but only the region M*(KL+KU+1) will be referenced. The following subroutine can is an example showing how to convert the original matrix 'a' to row-based band matrix 'b'. for i in range(0, m): for j in range(max(0, i-kl), min(i+ku+1, n)): b[i, j-i+kl] = a[i, j]

Java documentation for android.renderscript.ScriptIntrinsicBLAS.CGBMV(int, int, int, android.renderscript.Float2, android.renderscript.Allocation, android.renderscript.Allocation, int, android.renderscript.Float2, android.renderscript.Allocation, int).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to