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
Is it possible that the following could be made to work?
using LinearAlgebra
A =hermitianpart(randn(3,3)) # Hermitian{Float64, Matrix{Float64}}
A .+=Diagonal([1, 2, 3]) # ArgumentError: Cannot set a non-diagonal index in a Hermitian matrix
A .*=2# Same
For now, this seems like a work-around:
A.data .+=Diagonal([1, 2, 3])
A.data .*=2
The text was updated successfully, but these errors were encountered:
Is it possible that the following could be made to work?
For now, this seems like a work-around:
The text was updated successfully, but these errors were encountered: