Share via


ScriptIntrinsicBLAS.CHPMV Method

Definition

CHPMV performs the matrix-vector operation y := alphaAx + beta*y

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

Parameters

Uplo
Int32

Specifies whether the upper or lower triangular part of the matrix A is supplied in packed form.

alpha
Float2

The scalar alpha.

Ap
Allocation

The input allocation contains 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

CHPMV performs the matrix-vector operation y := alpha*A*x + beta*y

Details: http://www.netlib.org/lapack/explore-html/d2/d06/chpmv_8f.html

Note: For a N*N matrix, the input Allocation should be a 1D allocation of size dimX = N*(N+1)/2, The following subroutine can is an example showing how to convert a UPPER trianglar matrix 'a' to packed matrix 'b'. k = 0 for i in range(0, n): for j in range(i, n): b[k++] = a[i, j]

Java documentation for android.renderscript.ScriptIntrinsicBLAS.CHPMV(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