Skip to content

Instantly share code, notes, and snippets.

View eastonsuo's full-sized avatar
🎯
Focusing

索毅 eastonsuo

🎯
Focusing
  • 南山 | 深圳
View GitHub Profile
import taichi as ti
ti.init(arch=ti.gpu)
n = 320
pixels = ti.field(dtype=float, shape=(n * 2, n))
@ti.func
def complex_sqr(z):
return ti.Vector([z[0]**2 - z[1]**2, z[1] * z[0] * 2])