Skip to content

Commit

Permalink
Merge pull request #29 from invenia/wct/make-indep-mogp-fast
Browse files Browse the repository at this point in the history
collect -> Matrix
  • Loading branch information
willtebbutt committed Aug 25, 2021
2 parents cdc4cf7 + d51107b commit d005a76
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "LinearMixingModels"
uuid = "b8ce4b42-e81b-4a39-a84a-67f74a9a16dd"
authors = ["Invenia Technical Computing Corporation"]
version = "0.1.2"
version = "0.1.3"

[deps]
AbstractGPs = "99985d1d-32ba-4be9-9821-2ec096f28918"
Expand Down
8 changes: 3 additions & 5 deletions src/independent_mogp.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,15 @@ end
# See AbstractGPs.jl API docs.
function AbstractGPs.cov(f::IndependentMOGP, x::MOInputIsotopicByOutputs)
Cs = map(f -> cov(f, x.x), f.fs)
return collect(BlockDiagonal(Cs))
return Matrix(BlockDiagonal(Cs))
end

# See AbstractGPs.jl API docs.
function AbstractGPs.cov(
f::IndependentMOGP,
x::MOInputIsotopicByOutputs,
y::MOInputIsotopicByOutputs,
f::IndependentMOGP, x::MOInputIsotopicByOutputs, y::MOInputIsotopicByOutputs
)
Cs = map(f -> cov(f, x.x, y.x), f.fs)
return collect(BlockDiagonal(Cs))
return Matrix(BlockDiagonal(Cs))
end

# See AbstractGPs.jl API docs.
Expand Down

2 comments on commit d005a76

@willtebbutt
Copy link
Member

Choose a reason for hiding this comment

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

@JuliaRegistrator register()

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request created: JuliaRegistries/General/43542

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.3 -m "<description of version>" d005a7680eccf2ced7d91923eafe00ae202a75a2
git push origin v0.1.3

Please sign in to comment.