Skip to content

Commit 26c1c54

Browse files
authored
Correct type for arg()
MWE: using ArrayFire; arg.(rand(AFArray{ComplexF32}, 1, 1))
1 parent 8238f8d commit 26c1c54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrap.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,7 @@ function abs(_in::AFArray{T,N}) where {T,N}
380380
AFArray{T,N}(out[])
381381
end
382382

383-
function arg(_in::AFArray{T,N}) where {T,N}
383+
function arg(_in::AFArray{Complex{T},N}) where {T,N}
384384
out = RefValue{af_array}(0)
385385
_error(ccall((:af_arg,af_lib),af_err,(Ptr{af_array},af_array),out,_in.arr))
386386
AFArray{T,N}(out[])

0 commit comments

Comments
 (0)