Skip to content

Commit

Permalink
Remove leftovers
Browse files Browse the repository at this point in the history
  • Loading branch information
coezmaden committed Nov 17, 2021
1 parent 81d94c3 commit ccb75f0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 25 deletions.
24 changes: 0 additions & 24 deletions src/carrier_replica.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,6 @@ end
"""
$(SIGNATURES)
Floating point CPU StructArray carrier generation
"""
function gen_carrier_replica!(
carrier_replica::StructArray{Complex{T},1,NamedTuple{(:re, :im),Tuple{Array{T,1},Array{T,1}}},Int64},
carrier_frequency,
sampling_frequency,
start_phase,
carrier_amplitude_power::Val{N},
start_sample,
num_samples
) where {
T <: AbstractFloat,
N
}
sample_range = start_sample:num_samples + start_sample - 1
@views @. carrier_replica.re[sample_range] = 2pi * (sample_range) * carrier_frequency / sampling_frequency + start_phase
@. carrier_replica.im[sample_range] = sin(carrier_replica.re[sample_range])
@. carrier_replica.re[sample_range] = cos(carrier_replica.re[sample_range])
return carrier_replica
end

"""
$(SIGNATURES)
Updates the carrier phase.
"""
function update_carrier_phase(
Expand Down
2 changes: 1 addition & 1 deletion src/correlator.jl
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Get prompt correlator
function get_prompt(correlator::AbstractCorrelator, correlator_sample_shifts)
correlator.accumulators[get_prompt_index(correlator_sample_shifts)]
end
CUDA.dot

"""
$(SIGNATURES)
Expand Down

0 comments on commit ccb75f0

Please sign in to comment.