diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 5c42a1c..1e8ad5b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -5,6 +5,7 @@ on: branches: - 'main' tags: '*' + pull_request: permissions: pull-requests: write @@ -18,7 +19,7 @@ jobs: - uses: actions/checkout@v2 - uses: julia-actions/setup-julia@v1 with: - version: "1.8" + version: "1" - uses: julia-actions/cache@v1 - name: Extract Package Name from Project.toml id: extract-package-name diff --git a/src/utils.jl b/src/utils.jl index d0fe1a6..ae92f55 100644 --- a/src/utils.jl +++ b/src/utils.jl @@ -273,6 +273,13 @@ end real_and_imag(v) Return a view over the real and imaginary parts of a complex vector `v`. + +```jldoctest +julia> v = [1.0 + 2.0im, 3.0 + 4.0im]; + +julia> vr,vi = IFGF.real_and_imag(v) +([1.0, 3.0], [2.0, 4.0]) +``` """ function real_and_imag(v::AbstractVector{Complex{T}}) where {T<:Real} vfloat = reinterpret(T, v)