Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lscsoft
lalsuite
Commits
a8680173
Commit
a8680173
authored
Feb 02, 2017
by
Leo Pound Singer
Browse files
Fix wrong loop termination condition
Original: 116fb529b26eaadb0f05f7680a9a42e958e8cc35
parent
74d9bf80
Changes
1
Hide whitespace changes
Inline
Side-by-side
lalinference/src/bayestar_sky_map.c
View file @
a8680173
...
...
@@ -873,12 +873,12 @@ bayestar_pixel *bayestar_sky_map_toa_phoa_snr(
}
double
max_accum2
[
3
]
=
{
-
INFINITY
,
-
INFINITY
,
-
INFINITY
};
for
(
long
isample
=
0
;
isample
<
3
;
isample
++
)
for
(
unsigned
long
isample
=
0
;
isample
<
nsamples
;
isample
++
)
for
(
unsigned
char
k
=
0
;
k
<
3
;
k
++
)
if
(
accum2
[
isample
][
k
]
>
max_accum2
[
k
])
max_accum2
[
k
]
=
accum2
[
isample
][
k
];
double
sum_accum2
[
3
]
=
{
0
,
0
,
0
};
for
(
long
isample
=
0
;
isample
<
3
;
isample
++
)
for
(
unsigned
long
isample
=
0
;
isample
<
nsamples
;
isample
++
)
for
(
unsigned
char
k
=
0
;
k
<
3
;
k
++
)
sum_accum2
[
k
]
+=
exp
(
accum2
[
isample
][
k
]
-
max_accum2
[
k
]);
for
(
unsigned
char
k
=
0
;
k
<
3
;
k
++
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment