1 Star 0 Fork 0

三字经/OpenBLAS

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
zdotcf.f 918 Bytes
一键复制 编辑 原始数据 按行查看 历史
Zhang Xianyi 提交于 2011-01-24 22:54 +08:00 . Import GotoBLAS2 1.13 BSD version codes.
double complex function zdotcf(n,zx,incx,zy,incy)
c
c forms the dot product of a vector.
c jack dongarra, 3/11/78.
c modified 12/3/93, array(1) declarations changed to array(*)
c
double complex zx(*),zy(*),ztemp
integer i,incx,incy,ix,iy,n
ztemp = (0.0d0,0.0d0)
zdotcf = (0.0d0,0.0d0)
if(n.le.0)return
if(incx.eq.1.and.incy.eq.1)go to 20
c
c code for unequal increments or equal increments
c not equal to 1
c
ix = 1
iy = 1
if(incx.lt.0)ix = (-n+1)*incx + 1
if(incy.lt.0)iy = (-n+1)*incy + 1
do 10 i = 1,n
ztemp = ztemp + dconjg(zx(ix))*zy(iy)
ix = ix + incx
iy = iy + incy
10 continue
zdotcf = ztemp
return
c
c code for both increments equal to 1
c
20 do 30 i = 1,n
ztemp = ztemp + dconjg(zx(i))*zy(i)
30 continue
zdotcf = ztemp
return
end
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mll/OpenBLAS.git
git@gitee.com:mll/OpenBLAS.git
mll
OpenBLAS
OpenBLAS
develop

搜索帮助