Skip to content

Commit 9fadafd

Browse files
Merge pull request #706 from dpsanders/dps/set_operations
Register set operations
2 parents 2a9979a + 25647ef commit 9fadafd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

src/extra_functions.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ ModelingToolkit.@register Distributions.quantile(dist,x)
3939
ModelingToolkit.@register Distributions.Uniform(mu,sigma)
4040
ModelingToolkit.@register Distributions.Normal(mu,sigma)
4141

42+
@register (x::Num, y::AbstractArray)
43+
@register (x, y)
44+
@register (x, y)
45+
@register (x, y)
46+
@register (x, y)
47+
@register (x, y)
48+
4249
function LinearAlgebra.det(A::AbstractMatrix{<:Num}; laplace=true)
4350
if laplace
4451
n = LinearAlgebra.checksquare(A)
@@ -67,4 +74,4 @@ function LinearAlgebra.det(A::AbstractMatrix{<:Num}; laplace=true)
6774
end
6875
return det(lu(A; check = false))
6976
end
70-
end
77+
end

0 commit comments

Comments
 (0)