ScriptIntrinsicBLAS.CHPMV 方法

定义

CHPMV 执行矩阵向量运算 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

参数

Uplo
Int32

指定是否以打包形式提供矩阵 A 的上半角或下三角部分。

alpha
Float2

标量 alpha。

Ap
Allocation

输入分配包含矩阵 A,支持的元素类型 Element#F32_2

X
Allocation

输入分配包含矢量 x,支持的元素类型 Element#F32_2

incX
Int32

矢量 x 的元素的增量必须大于零。

beta
Float2

标量 beta 版。

Y
Allocation

输入分配包含矢量 y,支持的元素类型 Element#F32_2

incY
Int32

矢量 y 的元素的增量必须大于零。

属性

注解

CHPMV 执行矩阵向量运算 y := alpha*A*x + beta*y

详细信息: http://www.netlib.org/lapack/explore-html/d2/d06/chpmv_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.renderscript.ScriptIntrinsicBLAS.CHPMV(int, android.renderscript.Float2, android.renderscript.Allocation, android.renderscript.Allocation, int, android.renderscript.Float2, android.renderscript.Allocation, int)Java 文档

本页的某些部分是根据 Android 开放源代码项目创建和共享的工作进行的修改,并根据 Creative Commons 2.5 属性许可证中所述的术语使用。

适用于