Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check for the size of the input for one of the constructors of the covariance matrices #347

Merged
merged 2 commits into from
Jul 30, 2024

Conversation

jmcarcell
Copy link
Member

@jmcarcell jmcarcell commented Jul 29, 2024

currently it's possible to set only the first N elements of the matrix. I think typically this will be mostly a mistake rather than intentionally filling only the first N.

Also static_cast to float, because with older GCC and Clang this is fine, newer GCC throws a warning and newer Clang a compilation error if it's a double. It's already in the name that it's a float in case it's coming from a double (and narrowing happens).

BEGINRELEASENOTES

  • Covariance matrices: Check for the size of the input for one of the constructors
    • static_cast the inputs to float

ENDRELEASENOTES

@jmcarcell jmcarcell changed the title Check for the size of the input for one of the constructors Check for the size of the input for one of the constructors of the covariance matrices Jul 29, 2024
Copy link
Contributor

@tmadlener tmadlener left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I will do the necessary rebasing / fixing of the README links before merging this.

And also static_cast to float, because with older GCC and Clang this is fine,
newer GCC throws a warning and newer Clang a compilation error if it's a double.
@tmadlener tmadlener merged commit 1e1ebce into main Jul 30, 2024
14 of 17 checks passed
@tmadlener tmadlener deleted the covmatrix-check branch July 30, 2024 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants