-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Simplify code with merge
in stdlib_stats_corr.f90, stdlib_stats_cov.f90 and other files
#953
Comments
Yes, I agree, using merge() here is unnecessary.
Op di 18 mrt 2025 om 13:15 schreef Beliavsky ***@***.***>:
… In
https://github.com/fortran-lang/stdlib/blob/stdlib-fpm/src/stdlib_stats_corr.f90
I see many lines using merge such as
mask_ = merge(.true., .false., mask(:, i) .and. mask(:, j))
I think this can be written as just
mask_ = mask(:, i) .and. mask(:, j)
—
Reply to this email directly, view it on GitHub
<#953>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN6YR7YIOJUN4FQBIUGOVT2VAE6BAVCNFSM6AAAAABZH7RG3KVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEZDQMZRGA3TINI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[image: Beliavsky]*Beliavsky* created an issue (fortran-lang/stdlib#953)
<#953>
In
https://github.com/fortran-lang/stdlib/blob/stdlib-fpm/src/stdlib_stats_corr.f90
I see many lines using merge such as
mask_ = merge(.true., .false., mask(:, i) .and. mask(:, j))
I think this can be written as just
mask_ = mask(:, i) .and. mask(:, j)
—
Reply to this email directly, view it on GitHub
<#953>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAN6YR7YIOJUN4FQBIUGOVT2VAE6BAVCNFSM6AAAAABZH7RG3KVHI2DSMVQWIX3LMV43ASLTON2WKOZSHEZDQMZRGA3TINI>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Using Windows
gives a list of files where there may be an unnecessary
The lines are
|
merge
in stdlib_stats_corr.f90, stdlib_stats_cov.f90 and other files
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
In https://github.com/fortran-lang/stdlib/blob/stdlib-fpm/src/stdlib_stats_corr.f90
I see many lines using
merge
such asI think this can be written as just
The text was updated successfully, but these errors were encountered: