Skip to content

Commit

Permalink
Update DualTree01.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
dehann committed Nov 20, 2023
1 parent 4a1950a commit bb087aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DualTree01.jl
Original file line number Diff line number Diff line change
Expand Up @@ -428,21 +428,21 @@ Evaluate the KDE object at given points.
> **Note**, must use Array{Float64,2} when passing in evaluation points.
"""
function (bd::BallTreeDensity)(pos::Array{Float64,2},
function (bd::BallTreeDensity)(pos::AbstractMatrix{Float64},
lvFlag::Bool=false,
errTol::Float64=1e-3,
addop=(+,),
diffop=(-,) )
evaluateDualTree(bd, pos, lvFlag, errTol, addop, diffop)
end
function (bd::BallTreeDensity)(pos::Array{Float64,1},
function (bd::BallTreeDensity)(pos::AbstractVector{Float64},
lvFlag::Bool=false,
errTol::Float64=1e-3,
addop=(+,),
diffop=(-,) )
# TODO should it not be reshape(pos,1,:) instead?
# @warn "whoa! check reshape inside this eval balltree function"
evaluateDualTree(bd, reshape(pos,1,:), lvFlag, errTol, addop, diffop)
evaluateDualTree(bd, reshape(pos,:,1), lvFlag, errTol, addop, diffop)
end


Expand Down

0 comments on commit bb087aa

Please sign in to comment.