We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
promote_operation
real
imag
1 parent 07ce2fc commit aadf53fCopy full SHA for aadf53f
test/interface.jl
@@ -57,6 +57,11 @@ Base.@irrational theodorus 1.73205080756887729353 sqrt(big(3))
57
MathConstants.catalan
58
@test MA._instantiate(typeof(theodorus)) == theodorus
59
end
60
+
61
+ for op in [real, imag]
62
+ @test MA.promote_operation(op, ComplexF64) == Float64
63
+ @test MA.promote_operation(op, Complex{Real}) == Real
64
+ end
65
66
67
@testset "Errors" begin
0 commit comments