Skip to content

Commit 10112cf

Browse files
YingboMashashi
andcommitted
Special case conj
Co-authored-by: "Shashi Gowda" <gowda@mit.edu> Co-authored-by: "Yingbo Ma" <mayingbo5@gmail.com>
1 parent 1056774 commit 10112cf

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/function_registration.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ end
5555
# special cases
5656
Base.:^(x::Expression,y::T) where T <: Integer = Operation(Base.:^, Expression[x, y])
5757
Base.:^(x::Expression,y::T) where T <: Rational = Operation(Base.:^, Expression[x, y])
58+
Base.conj(x::Expression) = Operation(Base.conj, [x])
5859
Base.muladd(a::Expression, b::Expression, c::Expression) = a * b + c
5960

6061
@register Base.getindex(x,i)

test/direct.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,4 @@ end
8383
test_worldage()
8484

8585
@test muladd(x, y, z) == x * y + z
86+
@test_nowarn [x, y, z]'

0 commit comments

Comments
 (0)