-
Notifications
You must be signed in to change notification settings - Fork 38
Open
Description
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
Metadata
Metadata
Assignees
Labels
No labels