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
3 changes: 2 additions & 1 deletion .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
branches:
- 'main'
tags: '*'
pull_request:

permissions:
pull-requests: write
Expand All @@ -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
Expand Down
7 changes: 7 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down