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

More complex tensor features #633

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

AngelEzquerra
Copy link
Contributor

This PR adds a couple of procedures to the complex module:

  • complex_imag: Creates a complex, imaginary tensor from a real tensor.
  • cswap: Swaps the real and imaginary components of a complex tensor.

`cswap` "swaps" the real and imaginary components of a complex tensor.
Using a single, capital letter variable does not follow nim's naming conventions and is not necessary in this case.
@AngelEzquerra AngelEzquerra force-pushed the more_complex_tensor_features branch 2 times, most recently from f34c43d to 069ca2e Compare March 16, 2024 23:38
@Vindaar Vindaar merged commit 49bf690 into mratsim:master Mar 21, 2024
12 checks passed
@Vindaar
Copy link
Collaborator

Vindaar commented Mar 21, 2024

Thanks a lot, once again!

@AngelEzquerra AngelEzquerra deleted the more_complex_tensor_features branch March 21, 2024 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants