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

Added vcat for ColVecs/RowVecs #291

Merged
merged 8 commits into from
Jun 3, 2021

Conversation

kaandocal
Copy link
Contributor

Tentative fix for this issue in AbstractGPs.

src/utils.jl Outdated Show resolved Hide resolved
src/utils.jl Outdated Show resolved Hide resolved
@devmotion
Copy link
Member

Can you also add some tests?

willtebbutt
willtebbutt previously approved these changes May 31, 2021
Copy link
Member

@willtebbutt willtebbutt left a comment

Choose a reason for hiding this comment

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

LGTM. Just requires a patch version bump then we're good to go provided that @devmotion is happy.

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

I think the tests could be improved a bit and actually check that we do the correct thing, e.g., by concatenating two different objects and checking that the concatenated values are correct (I also don't think that the check typeof(DX) == typeof(vcat(DX, DX)) is important - it's not the main purpose of the implementation and only a by-product if one actually concatenates two RowVecs or ColVecs whose underlying matrices have the same type). Otherwise, only the version bump seems to be missing 🙂

@kaandocal
Copy link
Contributor Author

@devmotion I've modified the tests to what you suggested - nothing extensive, but given the simplicity of the PR I wasn't at my most creative. Let me know if you have other suggestions!

test/utils.jl Outdated Show resolved Hide resolved
test/utils.jl Outdated Show resolved Hide resolved
@devmotion devmotion merged commit 84de3c6 into JuliaGaussianProcesses:master Jun 3, 2021
@devmotion
Copy link
Member

Thanks a lot for the PR 👍

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.

3 participants