question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

.at[] with complex numbers

See original GitHub issue
import jax
import jax.numpy as jnp

@jax.jit
def f():
    return jnp.zeros((1,), dtype=jnp.complex64).at[0].set(1)

f()
DeviceArray([3.6602185e-37+0.j], dtype=complex64)

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
mariogeigercommented, Apr 6, 2022

You are always so efficient to fix issues ❤️

1reaction
hawkinspcommented, Apr 6, 2022

The MHLO canonicalizer is mishandling simplifications of complex scatters. This will need a fix in upstream MLIR most likely.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Complex number - Wikipedia
A complex number can be visually represented as a pair of numbers (a, b) forming a vector on a diagram called an Argand...
Read more >
Complex Numbers - Math is Fun
Well, a Complex Number is just two numbers added together (a Real and an Imaginary Number). Either Part Can Be Zero. So, a...
Read more >
Complex Number - Definition, Formula, Properties, Examples
A complex number is a combination of real values and imaginary values. It is denoted by z = a + ib, where a,...
Read more >
Complex Numbers - Basics | Don't Memorise - YouTube
Now that we know what imaginary numbers are, we can move on to understanding Complex Numbers. ✓To access all videos related to Complex ......
Read more >
Complex Numbers | Brilliant Math & Science Wiki
A complex number is a number that can be written in the form a + b i a + bi a+bi, where a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found