Skip to content

Commit

Permalink
Add convenience wrapper for solve! method of spline solver.
Browse files Browse the repository at this point in the history
  • Loading branch information
michakraus committed Jun 27, 2022
1 parent e6fec74 commit c07e71a
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/poisson_splines.jl
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,15 @@ function solve!(p::PoissonSolverPBSplines{DT}, x::AbstractVector{DT}, w::Abstrac
return p
end

function solve!(p::PoissonSolverPBSplines{DT}, x::AbstractMatrix{DT}, w::AbstractMatrix{DT}) where {DT}
@assert size(x, 1) == 1
@assert size(w, 1) == 1

X = reshape(x, size(x,2))
W = reshape(w, size(w,2))

solve!(p, X, W)
end

function eval_density(p::PoissonSolverPBSplines{DT}, x::DT) where {DT}
eval_PBSBasis(p.ρ, p.bspl, x)
Expand Down

2 comments on commit c07e71a

@michakraus
Copy link
Member Author

Choose a reason for hiding this comment

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

@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 updated: JuliaRegistries/General/63179

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.0 -m "<description of version>" c07e71a43f0182d99638a5340fd16eee2631a692
git push origin v0.1.0

Please sign in to comment.