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.