Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comprehensive complex number support #2

Open
ifsheldon opened this issue Dec 30, 2021 · 0 comments
Open

Comprehensive complex number support #2

ifsheldon opened this issue Dec 30, 2021 · 0 comments
Assignees
Labels
Taichi-related wait_for_upstream Limited by upstream dependencies

Comments

@ifsheldon
Copy link
Owner

As mentioned in README, we have now these limitations:

  • The registered field with complex_dtype=True must be an appropriate VectorField or ScalarField
    • If it's VectorField, n should be 2, like v_field = ti.Vector.field(n=2, dtype=ti.f32, shape=(2, 3, 4, 5))
    • If it's a ScalarField, the last dimension of it should be 2, like field = ti.field(ti.f32, shape=(2,3,4,5,2))
  • The semantic of complex numbers is not preserved in kernels, so you are manipulating conventional fields, and as a consequence, you need to implement complex number operators yourself

Since I want to keep this library as lightweight as possible, I won't handcraft some sophisticated support on complex numbers now but rather wait for upstream Taichi to support complex numbers. Here is the related upstream issue.

@ifsheldon ifsheldon added the wait_for_upstream Limited by upstream dependencies label Dec 30, 2021
@ifsheldon ifsheldon self-assigned this Dec 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Taichi-related wait_for_upstream Limited by upstream dependencies
Projects
None yet
Development

No branches or pull requests

1 participant