-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
eltype of Symmetric or Hermitian matrix of matrices is AbstractMatrix #1071
Comments
Does the result improve if the |
I don't know, it depends on whether The issue is that I need to allocate a matrix to store the result of the kronecker product, which I do with EDIT: I just tested, and it does work. Let |
The reason is that that function symmetric_type(::Type{T}) where {S<:AbstractMatrix, T<:AbstractMatrix{S}}
return Symmetric{AbstractMatrix, T}
end so it seems nobody had a better answer so far. |
Thanks for the information. |
On a second thought, the easiest solution would be for |
Good question why that is not the case. |
not really, |
Do you mean that someone could define a new I suppose that's possible, but I don't see why |
|
Is anyone willing to narrow the eltype from |
MWE:
On the other hand, if we do this with
UpperTriangular
orLowerTriangular
theeltype
isMatrix{Float64}
, as expected.It's not a burning issue, but prevents the faster kronecker product introduced in JuliaLang/julia#53186 from working on
Symmetric
matrices of matrices, and requires the less elegant syntax used in JuliaLang/julia#54413.I've tried to understand the problem, but it seems to come directly from the constructor so I'm stuck.
The text was updated successfully, but these errors were encountered: