Skip to content

Commit

Permalink
support for vector inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
FlyingWorkshop committed Mar 10, 2024
1 parent e71e4aa commit ca07e21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/epca.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ function CompressedBeliefMDPs.compress(epca::EPCA, X; verbose=false, maxiter::In
end
return
end

CompressedBeliefMDPs.compress(epca::EPCA, X::Vector; verbose=false, maxiter::Integer=50) = vec(compress(epca, X'; verbose=verbose, maxiter=maxiter))

CompressedBeliefMDPs.decompress(epca::EPCA, A) = epca.g(A * epca.V)
CompressedBeliefMDPs.decompress(epca::EPCA, A::Vector) = vec(epca.g(A' * epca.V))

0 comments on commit ca07e21

Please sign in to comment.