提交 38e12a57 authored 作者: Arnaud Bergeron's avatar Arnaud Bergeron

Fix object names in comments.

上级 fe7d322d
...@@ -383,7 +383,7 @@ def gemv_c_code(y, A, x, z, alpha, beta, destructive, fail, ...@@ -383,7 +383,7 @@ def gemv_c_code(y, A, x, z, alpha, beta, destructive, fail,
fbeta = dbeta = ((dtype_%(beta)s*)PyArray_DATA(%(beta)s))[0]; fbeta = dbeta = ((dtype_%(beta)s*)PyArray_DATA(%(beta)s))[0];
// copy aa if not destructive // copy y if not destructive
if (!%(destructive)s) if (!%(destructive)s)
{ {
if ((NULL == %(z)s) if ((NULL == %(z)s)
...@@ -579,7 +579,7 @@ def gemv_c_code(y, A, x, z, alpha, beta, destructive, fail, ...@@ -579,7 +579,7 @@ def gemv_c_code(y, A, x, z, alpha, beta, destructive, fail,
{ {
// the matrix has at least one dim of length 0 // the matrix has at least one dim of length 0
// so we do this loop, which either iterates over 0 elements // so we do this loop, which either iterates over 0 elements
// or else it does the right thing for length-0 x. // or else it does the right thing for length-0 A.
dtype_%(z)s * zptr = (dtype_%(z)s*)(PyArray_DATA(%(z)s)); dtype_%(z)s * zptr = (dtype_%(z)s*)(PyArray_DATA(%(z)s));
for (int i = 0; i < NA0; ++i) for (int i = 0; i < NA0; ++i)
{ {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论