GotoBlas2之IxAMAX

来源:互联网 发布:全球创意城市网络 编辑:程序博客网 时间:2024/05/21 06:54

Blas的相关接口可以参考,同时要参考源码包中的reference文件夹,这个应该才是最重要的吧。

比如,在ICAMAX 中对incx的解释(来自网页,如下)

When working backward (incx < 0), each routine starts at the end of the
       vector and moves backward, as follows:

            x(1-incx * (n-1)), x(1-incx * (n-2)), ..., x(1)

但看reference文件夹icamaxf.f源码片段,不是这样的:

      icamaxf = 0
      if( n.lt.1 .or. incx.le.0 ) return

可知,当N<1或INCX<=0时,均返回0.

 

 

原创粉丝点击