Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/array-lib.jl
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,7 @@ function _matvec(A, b)
end
end
@wrapped (*)(A::AbstractMatrix, b::AbstractVector) = _matvec(A, b) false
@wrapped (*)(x::Adjoint{T, <:AbstractVector} where {T}, A::Symbolics.Arr{<:Any, 2}) = _matmul(x, A) false

# specialize `dot` to dispatch on `Symbolic{<:Number}` to eventually work for
# arrays of (possibly unwrapped) Symbolic types, see issue #831
Expand Down
6 changes: 6 additions & 0 deletions test/arrays.jl
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,12 @@ getdef(v) = getmetadata(v, Symbolics.VariableDefaultValue)
symvec = [sym3(symT), sym4(symT)]
@test isequal(symvec'weights, weights'symvec)

# Issue #575: test adjoint multiplication with Symbolics.Arr to resolve method ambiguity
@variables d[1:2] E[1:2, 1:2]
# This should not throw a method ambiguity error
result = d' * E
@test isa(result, Symbolics.Arr)

# ModelingToolkit.jl#1736
#
@variables t F(t)[1:1]
Expand Down
Loading