Skip to content

Commit

Permalink
Restrict types of arguments
Browse files Browse the repository at this point in the history
Co-authored-by: David Widmann <[email protected]>
  • Loading branch information
simsurace and devmotion authored Sep 26, 2023
1 parent a3f0527 commit 7d2ef0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rulesets/LinearAlgebra/dense.jl
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ end
##### `kron`
#####

function frule((_, Δx, Δy), ::typeof(kron), x, y)
function frule((_, Δx, Δy), ::typeof(kron), x::AbstractVecOrMat{<:Number}, y::AbstractVecOrMat{<:Number})
return kron(x, y), kron(Δx, y) + kron(x, Δy)
end

Expand Down

0 comments on commit 7d2ef0a

Please sign in to comment.