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
This has worked before, but seems to be broken now.
Probably related to JuliaDiff/ForwardDiff.jl#703 , but I don't understand how to fix it.
# add Tensors
using Tensors
function myfunk(e)
p, n = Tensors.eigen(e)
return otimes(n[:,1])
end;
e = rand(SymmetricTensor{2,3});
Tensors.gradient(myfunk, e)
Gives this error:
ERROR: setindex!(::StaticArraysCore.SMatrix{3, 3, Float64, 9}, value, ::Int) is not defined.
Hint: Use `MArray` or `SizedArray` to create a mutable static array
The text was updated successfully, but these errors were encountered:
Realized that this actually works due to JuliaDiff/ForwardDiff.jl#703, but the problem is that that one isn't released in ForwardDiff, because ForwardDiff is stuck on 0.10 and seems to be very unclear when changes on master will be released...
I could get the above example to work by (need to trick Tensors.jl to allow (ForwardDiff v0.11.0-DEV)
This has worked before, but seems to be broken now.
Probably related to JuliaDiff/ForwardDiff.jl#703 , but I don't understand how to fix it.
Gives this error:
The text was updated successfully, but these errors were encountered: