Skip to content

Commit 7d2ef0a

Browse files
simsuracedevmotion
andauthored
Restrict types of arguments
Co-authored-by: David Widmann <devmotion@users.noreply.github.com>
1 parent a3f0527 commit 7d2ef0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/rulesets/LinearAlgebra/dense.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ end
399399
##### `kron`
400400
#####
401401

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

0 commit comments

Comments
 (0)