Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
EveryBeam
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Peijin Zhang
EveryBeam
Commits
c1eebac5
Commit
c1eebac5
authored
2 years ago
by
Andre Offringa
Committed by
Andre Offringa
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
buffer -> destination
parent
1a2a97cd
Branches
add-single-element-interface
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cpp/griddedresponse/griddedresponse.h
+11
-10
11 additions, 10 deletions
cpp/griddedresponse/griddedresponse.h
with
11 additions
and
10 deletions
cpp/griddedresponse/griddedresponse.h
+
11
−
10
View file @
c1eebac5
...
...
@@ -42,14 +42,14 @@ class GriddedResponse {
*
* @param beam_mode Selects beam mode (BeamMode::kElement,
* BeamMode::kArrayFactor or BeamMode::kFull)
* @param
buffer
Output buffer, compute and set size with
* @param
destination
Output buffer, compute and set size with
* GriddedResponse::GetStationBufferSize(1)
* @param station_idx Station index, must be smaller than number of stations
* in the Telescope
* @param time Time, modified Julian date, UTC, in seconds (MJD(UTC), s).
* @param frequency Frequency (Hz)
*/
virtual
void
Response
(
BeamMode
beam_mode
,
std
::
complex
<
float
>*
buffer
,
virtual
void
Response
(
BeamMode
beam_mode
,
std
::
complex
<
float
>*
destination
,
double
time
,
double
freq
,
size_t
station_idx
,
size_t
field_id
)
=
0
;
...
...
@@ -59,14 +59,15 @@ class GriddedResponse {
* matrix (4 complex valued floats) per pixel for each station.
*
* @param beam_mode Selects beam mode (element, array factor or full)
* @param
buffer
Output buffer, compute and set size with
* @param
destination
Output buffer, compute and set size with
* GriddedResponse::GetStationBufferSize()
* @param time Time, modified Julian date, UTC, in seconds (MJD(UTC), s).
* @param frequency Frequency (Hz)
*/
virtual
void
ResponseAllStations
(
BeamMode
beam_mode
,
std
::
complex
<
float
>*
buffer
,
double
time
,
double
frequency
,
size_t
field_id
)
=
0
;
std
::
complex
<
float
>*
destination
,
double
time
,
double
frequency
,
size_t
field_id
)
=
0
;
/**
* @brief Calculate integrated/undersampled beam for a single time step.
...
...
@@ -75,7 +76,7 @@ class GriddedResponse {
* version.
*
* @param beam_mode Selects beam mode (element, array factor or full)
* @param
buffer
Buffer for storing the result, should have size width *
* @param
destination
Buffer for storing the result, should have size width *
* height * 16
* @param time Time, modified Julian date, UTC, in seconds (MJD(UTC), s).
* @param frequency Frequency (Hz)
...
...
@@ -84,7 +85,7 @@ class GriddedResponse {
* @param baseline_weights Baseline weights, size should equal
* Telescope::GetNrStations() * (Telescope::GetNrStations() + 1)/2
*/
virtual
void
IntegratedResponse
(
BeamMode
beam_mode
,
float
*
buffer
,
virtual
void
IntegratedResponse
(
BeamMode
beam_mode
,
float
*
destination
,
double
time
,
double
frequency
,
size_t
field_id
,
size_t
undersampling_factor
,
const
std
::
vector
<
double
>&
baseline_weights
);
...
...
@@ -99,7 +100,7 @@ class GriddedResponse {
* be used.
*
* @param beam_mode Selects beam mode (element, array factor or full)
* @param
buffer
Buffer for storing the result, should have size width *
* @param
destination
Buffer for storing the result, should have size width *
* height * 16
* @param time_array Vector with probing times, modified Julian date, UTC, in
* seconds (MJD(UTC), s).
...
...
@@ -131,8 +132,8 @@ class GriddedResponse {
/**
* Upsample a single element from an undersampled response.
* @param
buffer
Result buffer for one Mueller matrix element of size
Width()
* x Height().
* @param
destination
Result buffer for one Mueller matrix element of size
*
Width()
x Height().
* @param element_index Value from 0 to 15 indicating which Mueller matrix to
* upsample.
* @param undersampled_beam The previously calculated undersampled response
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment