Skip to content

Commit

Permalink
Merge pull request #717 from JuliaReach/schillic/fix_projection_matrix
Browse files Browse the repository at this point in the history
Fix undefined projection_matrix variable
  • Loading branch information
schillic authored Nov 25, 2019
2 parents 4e3fe6c + a32c823 commit 156e5f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ReachSets/project_reach.jl
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ function project_reach(
sparse([1, 2], [xaxis, yaxis], [1.0, 1.0], 2, n)
end
else
@assert size(projection_matrix, 1) == 1 "currently we only " *
"support one-dimensional projection matrices"
@assert size(projection_matrix_high_dimensional, 1) == 1 "currently " *
"we only support one-dimensional projection matrices"
if got_time
# create a 1-row matrix
projection_matrix =
sparse(fill(1, n), 1:n, projection_matrix[1, :], 1, n)
sparse(fill(1, n), 1:n, projection_matrix_high_dimensional[1, :], 1, n)
else
# create a 2-row matrix
projection_matrix =
sparse(fill(2, n), 1:n, projection_matrix[1, :], 2, n)
sparse(fill(2, n), 1:n, projection_matrix_high_dimensional[1, :], 2, n)
projection_matrix[1, xaxis] = 1.0
end
end
Expand Down

0 comments on commit 156e5f5

Please sign in to comment.