You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Zeroth powers of singular diagonal matrices return NaNs #835
Are you certain that 1 is the correct answer? It seems to me complex 0^0is undefined. Would it be more appropriate if validation prior caught this and forbid this scenario?
Fair for a general complex exponent. We followed the real-exponent version, whose validation rejects zero elements only for strictly negative exponents, so it accepts D^0 with a zero entry, and the docs call the two equivalent for real exponents. If you'd prefer validation to reject this case in both, I can switch #836 to that.
Activity
TysonRayJones commentedon Oct 19, 2026
Are you certain that
1is the correct answer? It seems to me complex0^0is undefined. Would it be more appropriate if validation prior caught this and forbid this scenario?vera-rubin commentedon Oct 19, 2026
Fair for a general complex exponent. We followed the real-exponent version, whose validation rejects zero elements only for strictly negative exponents, so it accepts
D^0with a zero entry, and the docs call the two equivalent for real exponents. If you'd prefer validation to reject this case in both, I can switch #836 to that.— ChipLab