From ccb75f056f19bd0ddf504a4025bd0a304b11470d Mon Sep 17 00:00:00 2001 From: Can Ozmaden Date: Wed, 17 Nov 2021 07:10:24 +0100 Subject: [PATCH] Remove leftovers --- src/carrier_replica.jl | 24 ------------------------ src/correlator.jl | 2 +- 2 files changed, 1 insertion(+), 25 deletions(-) diff --git a/src/carrier_replica.jl b/src/carrier_replica.jl index a9e47fa..b77ee19 100644 --- a/src/carrier_replica.jl +++ b/src/carrier_replica.jl @@ -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( diff --git a/src/correlator.jl b/src/correlator.jl index f0ccd4f..d58ce14 100644 --- a/src/correlator.jl +++ b/src/correlator.jl @@ -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)