Skip to content

Commit

Permalink
Ensure that vector_residual specializes
Browse files Browse the repository at this point in the history
  • Loading branch information
KnutAM committed Mar 12, 2024
1 parent b339f72 commit c557548
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ The input `x` and output `r` of `rf` should have the same type, `RT`, and suppor
The approach was adopted from https://github.com/kimauth/MaterialModels.jl
"""
function vector_residual!(rf::Function, r_vector::AbstractVector{T}, x_vector::AbstractVector{T}, x) where T
function vector_residual!(rf::F, r_vector::AbstractVector{T}, x_vector::AbstractVector{T}, x) where {F<:Function, T}
x_tensor = frommandel(baseof(x), x_vector)
r_tensor = rf(x_tensor)
tomandel!(r_vector, r_tensor)
Expand Down

0 comments on commit c557548

Please sign in to comment.