-
Notifications
You must be signed in to change notification settings - Fork 74
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
A bug? #365
Comments
I'm thinking
This works, but ends up with an odd type:
but the same is true if |
Interesting. Thus, this is an error in LinearAlgebra. Should I make an issue for this? Recently I fighted with type piracy in DescriptorSystems. I was not able to get rid of it, but enhanced my handling of such cases (e.g., by internally converting the above to [[1] [2]; I], which works). Now I realize, this was not entirely my fault! |
I'd say it is a design choice, where I is always square. What are you
expecting the output to be?
…On Sun, Nov 7, 2021 at 8:02 AM Andreas Varga ***@***.***> wrote:
Interesting. Thus, this is an error in LinearAlgebra. Should I make an
issue for this?
Recently I fighted with type piracy in DescriptorSystems. I was not able
to get rid of it, but enhanced my handling of such cases (e.g., by
internally converting the above to [[1] [2]; I], which works). Now I
realize, this was not entirely my fault!
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#365 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADG6TD6GBZA4LERGDYB7CLUKZ2F5ANCNFSM5HQWLEWQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
John Verzani
Department of Mathematics
College of Staten Island, CUNY
|
Only the square case is implemented in With my handling of type piracy I get:
I would be happy to get the same with |
I see. That makes some sense at first glance.
On Sun, Nov 7, 2021 at 8:35 AM Andreas Varga ***@***.***> wrote:
Only the square case is implemented in LinearAlgebra.UniformScaling at
line #394:
promote_to_arrays_(n::Int, ::Type{Matrix}, J::UniformScaling{T}) where {T}
= copyto!(Matrix{T}(undef, n,n), J)
With my handling of type piracy I get:
julia> using DescriptorSystems
[ Info: Precompiling DescriptorSystems [a81e2ce2-54d1-11eb-2c75-db236b00f339]
julia> [1 2; I]
3×2 Matrix{Int64}:
1 2
1 0
0 1
I would be happy to get the same with LinearAlgebra too.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#365 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AADG6TDIFFKF6ZCSSDMLSRTUKZ6DHANCNFSM5HQWLEWQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
--
John Verzani
Department of Mathematics
College of Staten Island, CUNY
|
Apparently we have to wait for Julia 1.8 to be fixed in LinearAlgebra. Should we close this issue? |
I started some cleaning of my tests for rational transfer functions. The following fails and was commented out for
RationalTransferFunctions
. It seems however, it doesn't work forRationalFunctions
too.The text was updated successfully, but these errors were encountered: