Skip to content

Commit

Permalink
Merge pull request #123 from JuliaReach/schillic/111_fix
Browse files Browse the repository at this point in the history
fix variable name bug
  • Loading branch information
schillic authored Mar 26, 2018
2 parents 49d4d4d + 35a3681 commit 3123393
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Properties/check_blocks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ The first time index where the property is violated, and 0 if the property is sa
@inline proj(bi::Int, n::Int) = sparse([1], [bi], ones(1), 1, n)
@inline row(ϕpowerk::AbstractMatrix, bi::UnitRange{Int}) = ϕpowerk[bi, :]
@inline row(ϕpowerk::AbstractMatrix, bi::Int) = ϕpowerk[[bi], :]
@inline block(ϕpowerk_πbi::SparseMatrixCSC, bi::UnitRange{Int}) =
@inline block(ϕpowerk_πbi::SparseMatrixCSC, bj::UnitRange{Int}) =
ϕpowerk_πbi[:, bj]
@inline block(ϕpowerk_πbi::SparseMatrixCSC, bi::Int) = ϕpowerk_πbi[:, [bj]]
@inline block(ϕpowerk_πbi::SparseMatrixCSC, bj::Int) = ϕpowerk_πbi[:, [bj]]

# sparse, with input
function check_blocks!::SparseMatrixCSC{NUM, Int},
Expand Down
4 changes: 2 additions & 2 deletions src/ReachSets/reach_blocks.jl
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ nondeterministic inputs.
@inline proj(bi::Int, n::Int) = sparse([1], [bi], ones(1), 1, n)
@inline row(ϕpowerk::AbstractMatrix, bi::UnitRange{Int}) = ϕpowerk[bi, :]
@inline row(ϕpowerk::AbstractMatrix, bi::Int) = ϕpowerk[[bi], :]
@inline block(ϕpowerk_πbi::SparseMatrixCSC, bi::UnitRange{Int}) =
@inline block(ϕpowerk_πbi::SparseMatrixCSC, bj::UnitRange{Int}) =
ϕpowerk_πbi[:, bj]
@inline block(ϕpowerk_πbi::SparseMatrixCSC, bi::Int) = ϕpowerk_πbi[:, [bj]]
@inline block(ϕpowerk_πbi::SparseMatrixCSC, bj::Int) = ϕpowerk_πbi[:, [bj]]

# sparse, with input
function reach_blocks!::SparseMatrixCSC{NUM, Int},
Expand Down

0 comments on commit 3123393

Please sign in to comment.