提交 7872373a authored 作者: Frederic's avatar Frederic

Updated comments.

上级 b7b95ee2
...@@ -1677,7 +1677,7 @@ CudaNdarray_Subscript(PyObject * py_self, PyObject * key) ...@@ -1677,7 +1677,7 @@ CudaNdarray_Subscript(PyObject * py_self, PyObject * key)
// See http://docs.python.org/dev/py3k/c-api/object.html#PyObject_SetItem // See http://docs.python.org/dev/py3k/c-api/object.html#PyObject_SetItem
// Doesn't handle broadcasting, e.g. a[:] = 5 // Doesn't handle broadcasting, e.g. a[:] = 5
// Can only be assigned from a CudaNdarray on the right side // Can only be assigned from a CudaNdarray on the right side
// Or a ndarray when the left side part is c contiguous. // Or a ndarray
// Or a python scalar with value 0 when the left side part is c contiguous. // Or a python scalar with value 0 when the left side part is c contiguous.
static int static int
CudaNdarray_setitem(PyObject *o, PyObject *key, PyObject *value) CudaNdarray_setitem(PyObject *o, PyObject *key, PyObject *value)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论