Skip to content

Conversation

@sostock
Copy link
Contributor

@sostock sostock commented Apr 19, 2021

In the following example, an error is thrown because the eltype of the matrix isn’t promoted to accept complex values. This PR fixes that:

julia> randn(5,5) \ (5+2im)I
ERROR: InexactError: Float64(-2.3769681068356663 - 0.9507872427342665im)
Stacktrace:
[...]

@sostock sostock added the linear algebra Linear algebra label Apr 19, 2021
Copy link
Member

@dkarrasch dkarrasch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No functional change, but a bit more direct?

Change `AbstractArray` to `AbstractMatrix`.

Co-authored-by: Daniel Karrasch <[email protected]>
@dkarrasch dkarrasch merged commit b315648 into JuliaLang:master Apr 20, 2021
ElOceanografo pushed a commit to ElOceanografo/julia that referenced this pull request May 4, 2021
antoine-levitt pushed a commit to antoine-levitt/julia that referenced this pull request May 9, 2021
johanmon pushed a commit to johanmon/julia that referenced this pull request Jul 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

linear algebra Linear algebra

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants