Ferrite-FEM / Ferrite-FEM/Tensors.jl

AD norm is NaN at origin

Open
#191 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Julia
Stars
182
Forks
40
PR merge metrics
No merged PRs in 30d

Description

Not really specific to `Tensors.jl`, but maybe it's good to document it here as well. I ran into the following issue yesterday
```
julia> using Tensors

julia> Tensors.hessian(x->norm(x),zero(Tensor{2,2}),:all)
([NaN NaN; NaN NaN;;; NaN NaN; NaN NaN;;;; NaN NaN; NaN NaN;;; NaN NaN; NaN NaN], [NaN NaN; NaN NaN], 0.0)
```

Basically a duplicate of https://github.com/JuliaDiff/ChainRules.jl/issues/576 and https://github.com/JuliaDiff/ForwardDiff.jl/issues/547 just at a different repo. You can close it if you think its too redundant.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.