Skip to content

Commit

Permalink
[skip ci] apply review
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu committed May 13, 2020
1 parent 04e6b31 commit 70ca0b2
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/snode.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@ Our language provides *structural nodes (SNodes)* to compose the hierarchy and p
* dynamic: Variable-length array, with a predefined maximum length. It serves the role of ``std::vector`` in C++ or ``list`` in Python, and can be used to maintain objects (e.g. particles) contained in a block.


Taichi tensors like powers of two
---------------------------------

Non-power-of-two tensor dimensions are promoted into powers of two and thus these tensors will occupy more virtual address space.
For example, a tensor of size ``(18, 65)`` will be materialized as ``(32, 128)``.


See :ref:`layout` for more details. ``ti.root`` is the root node of the data structure.

.. function:: snode.place(x, ...)
Expand Down Expand Up @@ -180,6 +173,12 @@ Working with ``dynamic`` SNodes
Inserts ``val`` into the ``dynamic`` node with indices ``indices``.


Taichi tensors like powers of two
---------------------------------

Non-power-of-two tensor dimensions are promoted into powers of two and thus these tensors will occupy more virtual address space.
For example, a (dense) tensor of size ``(18, 65)`` will be materialized as ``(32, 128)``.


Indices
-------
Expand Down

0 comments on commit 70ca0b2

Please sign in to comment.