提交 347fdf62 authored 作者: Iban Harlouchet's avatar Iban Harlouchet

Partial correction to mgrid and ogrid indoc/library/tensor/basic.txt

上级 5684663b
...@@ -1643,16 +1643,26 @@ Linear Algebra ...@@ -1643,16 +1643,26 @@ Linear Algebra
:note: See :func:`tensordot` and :func:`batched_dot` for :note: See :func:`tensordot` and :func:`batched_dot` for
supplementary documentation. supplementary documentation.
.. class:: _nd_grid(object) .. function:: mgrid()
Create a dense n-dimensional 'meshgrid' with equally spaced points. :param
Used to create the instance ''mgrid'' and ''ogrid'' which act similarly
to their numpy equivalents.
:param sparse: boolean, optional, default=True. Specifying False leads to :returns: a dense (or fleshed out) mesh-grid when indexed, so that
the equivalent of numpy's mgrid functionality. Specifying each returned argument has the same shape. The dimensions
True leads to the equivalent of ogrid. and number of the output arrays are equal to the number of
indexing dimensions. If the step length is not a complex
number, then the stop is not inclusive.
.. function:: ogrid()
:param
:returns: an open (i.e. not fleshed out) mesh-grid when indexed,
so that only one dimension of each returned array is
greater than 1. The dimension and number of the output
arrays are equal to the number of indexing dimensions.
If the step length is not a complex number, then the
stop is not inclusive.
Gradient / Differentiation Gradient / Differentiation
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论