Skip to content

Commit

Permalink
test: update subscript sample model to include case where subscript m…
Browse files Browse the repository at this point in the history
…ath can go negative
  • Loading branch information
chrispcampbell committed Dec 13, 2024
1 parent 9e3e560 commit 1dc0458
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
27 changes: 27 additions & 0 deletions models/subscript/subscript.dat
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,30 @@ v[A2]
v[A3]
0 0
1 0
w[X1,Y1]
0 0
1 0
w[X1,Y2]
0 -1
1 -1
w[X1,Y3]
0 -2
1 -2
w[X2,Y1]
0 1
1 1
w[X2,Y2]
0 0
1 0
w[X2,Y3]
0 -1
1 -1
w[X3,Y1]
0 2
1 2
w[X3,Y2]
0 1
1 1
w[X3,Y3]
0 0
1 0
8 changes: 8 additions & 0 deletions models/subscript/subscript.mdl
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ v[DimA] = IF THEN ELSE (DimA = A2, 1, 0)
~:SUPPLEMENTARY
|

DimX: (X1-X3) ~~|
DimY: (Y1-Y3) ~~|
w[DimX,DimY] = DimX - DimY
~
~ dimensions used in expression position (where expression result can go negative)
~:SUPPLEMENTARY
|

********************************************************
.Control
********************************************************~
Expand Down

0 comments on commit 1dc0458

Please sign in to comment.