Skip to content

Commit

Permalink
Merge pull request #765 from JuliaReach/schillic/affine_map
Browse files Browse the repository at this point in the history
Make affine_map consistent
  • Loading branch information
schillic authored Jan 25, 2024
2 parents 296c76e + a17f395 commit 2d7e7c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Flowpipes/Flowpipe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ function LazySets.linear_map(M, fp::Flowpipe)
return Flowpipe(out, fp.ext)
end

function LazySets.affine_map(M, b, fp::Flowpipe)
function LazySets.affine_map(M, fp::Flowpipe, b)
out = [reconstruct(R, affine_map(M, set(R), b)) for R in fp]
return Flowpipe(out, fp.ext)
end
Expand Down
4 changes: 2 additions & 2 deletions src/Flowpipes/MixedFlowpipe.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ function LazySets.linear_map(M, fp::MixedFlowpipe)
return MixedFlowpipe(out, fp.ext)
end

function LazySets.affine_map(M, b, fp::MixedFlowpipe)
out = [affine_map(M, b, F) for F in fp]
function LazySets.affine_map(M, fp::MixedFlowpipe, b)
out = [affine_map(M, F, b) for F in fp]
return MixedFlowpipe(out, fp.ext)
end

0 comments on commit 2d7e7c1

Please sign in to comment.