Closed
Description
For JuliaDiff/ForwardDiff.jl#599 to work, length(::Type{StaticArraysCore.SMatrix{3, 3, Float64, 9}})
needs to be defined here in StaticArraysCore.
The present definition is:
which needs
which depends on LinearAlgebra.
What should happen? This core package has no dependencies right now. Should it gain LinearAlgebra just for this? Otherwise it could just define length
for a smaller set of types, and let the main package extend that. I think that would be sufficient for ForwardDiff, whose generated functions e.g. here https://github.com/JuliaDiff/ForwardDiff.jl/blob/c6dc2098b5201943cdb8433ee963078e6dcc7900/src/apiutils.jl#L21-L25 accept only x::StaticArray
, never Diagonal(StaticVector) etc.
Metadata
Metadata
Assignees
Labels
No labels