Skip to content

Help using nonlinear_pem with transfer functions #180

Closed Answered by baggepinnen
Hofsmo asked this question in Q&A
Discussion options

You must be logged in to vote

Hello 👋

The problem is this line

sm = @MArray zeros(2)

it creates an array of Float64 which is not compatible with the dual numbers used by the AD engine. If you replace it with

sm = @MArray zeros(eltype(h), 2)

it works

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Hofsmo
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@Hofsmo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants