提交 e311d33a authored 作者: Frederic's avatar Frederic

fix more typos following code review.

上级 4e7de4bb
...@@ -1766,7 +1766,7 @@ pattern. ...@@ -1766,7 +1766,7 @@ pattern.
:param x: Sparse matrix. :param x: Sparse matrix.
:param y: Sparse matrix. :param y: Sparse matrix.
:return: The sum of the two sparse matrix element wise. :return: The sum of the two sparse matrices element wise.
:note: `x` and `y` are assumed to have the same :note: `x` and `y` are assumed to have the same
sparsity pattern. sparsity pattern.
......
...@@ -99,7 +99,7 @@ class GetItem(Op): ...@@ -99,7 +99,7 @@ class GetItem(Op):
getitem = GetItem() getitem = GetItem()
""" """
Get specified slice of a typed list.. Get specified slice of a typed list.
:param x: type type list. :param x: type type list.
:param index: the index of the value to return from `x`. :param index: the index of the value to return from `x`.
...@@ -341,13 +341,15 @@ class Remove(Op): ...@@ -341,13 +341,15 @@ class Remove(Op):
return self.__class__.__name__ return self.__class__.__name__
remove = Remove() remove = Remove()
""" """Remove an element from a typed list.
Remove an element from a typed list.
:param x: the typed list to be changed. :param x: the typed list to be changed.
:param toRemove: an element to be removed from the typed list. :param toRemove: an element to be removed from the typed list.
We remove only the first instance. We only remove the first instance.
It work with ndarray.
:note: Python implementation of remove don't work when we want to
remove an ndarray from a list. This implementation work in that
case.
""" """
...@@ -477,8 +479,11 @@ Count the number of time an element is in the typed list. ...@@ -477,8 +479,11 @@ Count the number of time an element is in the typed list.
:param x: The typed list to look into. :param x: The typed list to look into.
:param elem: The element we want to count in list. :param elem: The element we want to count in list.
The element must evaluate to equal. The element are compared with equals.
They don't need to be the same instance. Work with ndrray.
:note: Python implementation of count don't work when we want to
count an ndarray from a list. This implementation work in that
case.
""" """
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论