Skip to content

Commit

Permalink
Add comment to pretty opaque helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
joehuchette committed Mar 1, 2016
1 parent d043d38 commit 06cc476
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/variable.jl
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,10 @@ facts("[variable] getValue on empty things") do
@fact length(getValue(z)) --> 0
end

# Slices three-dimensional JuMPContainer x[I+oi,J+oj,K+ok]
# I,J,K can be singletons, ranges, colons, etc.
# oi, oj, ok are scalar offsets. The last can be omitted, as
# that's useful to test more exotic indexing ([:red,"blue"])
function sliceof(x, I, J, K, oi, oj, ok=nothing)
if length(K) == 1
if length(J) == 1
Expand Down

0 comments on commit 06cc476

Please sign in to comment.