Skip to content

Commit

Permalink
resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
vai9er committed Dec 15, 2022
1 parent f9c9e0f commit 7282008
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions docs/lang/articles/basic/field.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,7 @@ The simplest way to declare a scalar field is to call `ti.field(dtype, shape)`,
```python
f_1d = ti.field(ti.i32, shape=9) # A 1D field of length 9
```
<<<<<<< HEAD
=======

>>>>>>> da7bac2b5be484ec2648fe058e191497f5803384
An illustration of `f_1d`:

```
Expand All @@ -61,11 +58,6 @@ The simplest way to declare a scalar field is to call `ti.field(dtype, shape)`,
There is little difference between a 0D field and a 1D field of length 1 except for their indexing rules. You *must* use `None` as the index to access a 0D field and `0` as the index to access a 1D field of length 1:

```python
<<<<<<< HEAD

=======

>>>>>>> da7bac2b5be484ec2648fe058e191497f5803384
f1 = ti.field(int, shape=())
f2 = ti.field(int, shape=1)

Expand Down

0 comments on commit 7282008

Please sign in to comment.