blas中incx和incxy的含义是什么?

问题描述 投票:2回答:2

对于BLAS函数sdot(n,x,incx,y,incy)。

incx指定x元素的增量。

参数incx和incy的含义是什么?

blas
2个回答
0
投票

sdot(n,x,incx,y,incy)将返回该值

x(1)* y(1)+ x(1 + incx)* y(1 + incy)+ ... + x(1+(n-1)* incx)* y(1+(n-1) * incy)。

有关更多信息,请参阅源代码http://netlib.sandia.gov/blas/sdot.f


0
投票

我想分别是数组x和y的索引增量。

index_x += incx
index_y += incy

在标准情况下,它们应设置为1。

© www.soinside.com 2019 - 2024. All rights reserved.