Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
GstLAL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
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
Service Desk
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
spiir-group
GstLAL
Commits
3b2eba8c
Commit
3b2eba8c
authored
4 years ago
by
Patrick Godwin
Browse files
Options
Downloads
Patches
Plain Diff
gstlal_matrixmixer.c: fix incorrect mixing for complex data types, prevent lock-ups for N to 1 case
parent
480304bf
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
gstlal/gst/lal/gstlal_matrixmixer.c
+3
-7
3 additions, 7 deletions
gstlal/gst/lal/gstlal_matrixmixer.c
with
3 additions
and
7 deletions
gstlal/gst/lal/gstlal_matrixmixer.c
+
3
−
7
View file @
3b2eba8c
...
...
@@ -170,11 +170,9 @@ static int num_output_channels(const GSTLALMatrixMixer *element, enum gstlal_mat
switch
(
data_type
)
{
case
GSTLAL_MATRIXMIXER_FLOAT
:
case
GSTLAL_MATRIXMIXER_DOUBLE
:
return
element
->
mixmatrix_d
->
size2
;
case
GSTLAL_MATRIXMIXER_COMPLEX_FLOAT
:
case
GSTLAL_MATRIXMIXER_COMPLEX_DOUBLE
:
return
element
->
mixmatrix_d
->
size2
/
2
;
return
element
->
mixmatrix_d
->
size2
;
default:
g_assert_not_reached
();
...
...
@@ -515,10 +513,8 @@ static void set_property(GObject *object, enum property prop_id, const GValue *v
for
(
i
=
0
;
i
<
element
->
mixmatrix_d
->
size1
;
i
++
)
for
(
j
=
0
;
j
<
element
->
mixmatrix_d
->
size2
;
j
++
)
gsl_matrix_float_set
(
element
->
mixmatrix_s
,
i
,
j
,
gsl_matrix_get
(
element
->
mixmatrix_d
,
i
,
j
));
}
if
(
element
->
mixmatrix_d
->
size2
>=
2
)
{
element
->
mixmatrix_cd
=
gsl_matrix_complex_view_array
(
element
->
mixmatrix_d
->
data
,
element
->
mixmatrix_d
->
size1
,
element
->
mixmatrix_d
->
size2
/
2
);
element
->
mixmatrix_cs
=
gsl_matrix_complex_float_view_array
(
element
->
mixmatrix_s
->
data
,
element
->
mixmatrix_s
->
size1
,
element
->
mixmatrix_s
->
size2
/
2
);
}
element
->
mixmatrix_cd
=
gsl_matrix_complex_view_array
(
element
->
mixmatrix_d
->
data
,
element
->
mixmatrix_d
->
size1
,
element
->
mixmatrix_d
->
size2
);
element
->
mixmatrix_cs
=
gsl_matrix_complex_float_view_array
(
element
->
mixmatrix_s
->
data
,
element
->
mixmatrix_s
->
size1
,
element
->
mixmatrix_s
->
size2
);
/*
* if the number of channels has changed, force a caps
...
...
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