Skip to content

Commit c1226eb

Browse files
simsuracedevmotion
andcommitted
Restrict types of arguments
Co-authored-by: David Widmann <[email protected]>
1 parent 7c53f4b commit c1226eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)