提交 1f7b5627 authored 作者: Pascal Lamblin's avatar Pascal Lamblin

Small changes in inline documentation.

上级 b9333c23
...@@ -1812,18 +1812,18 @@ static PyGetSetDef CudaNdarray_getset[] = { ...@@ -1812,18 +1812,18 @@ static PyGetSetDef CudaNdarray_getset[] = {
{"size", {"size",
(getter)CudaNdarray_SIZE_Object, (getter)CudaNdarray_SIZE_Object,
NULL, NULL,
"Return the number of element in this objects.", "The number of elements in this object.",
NULL}, NULL},
//mem_size is neede for pycuda.elementwise.ElementwiseKernel Why do they use size and mem_size of the same value? //mem_size is neede for pycuda.elementwise.ElementwiseKernel Why do they use size and mem_size of the same value?
{"mem_size", {"mem_size",
(getter)CudaNdarray_SIZE_Object, (getter)CudaNdarray_SIZE_Object,
NULL, NULL,
"Return the number of element in this objects.", "The number of elements in this object.",
NULL}, NULL},
{"ndim", {"ndim",
(getter)CudaNdarray_get_ndim, (getter)CudaNdarray_get_ndim,
NULL, NULL,
"The number of dimensions in this objects", "The number of dimensions in this object.",
NULL}, NULL},
{NULL, NULL, NULL, NULL} /* Sentinel */ {NULL, NULL, NULL, NULL} /* Sentinel */
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论