Skip to content

Commit 58e7407

Browse files
committed
(core) added a Python binding for the new simplex_graph_limited function
1 parent ea0c6f5 commit 58e7407

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

nimplex.nim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -457,6 +457,10 @@ when appType == "lib" and not defined(nimdoc):
457457
let graph = simplex_graph(dim, ndiv)
458458
return (graph[0].toSeq2D(), graph[1])
459459

460+
proc simplex_graph_limited_py*(dim: int, ndiv: int, limit: seq[seq[int]]): (seq[seq[int]], seq[seq[int]]) {.exportpy.} =
461+
let graph = simplex_graph_limited(dim, ndiv, limit)
462+
return (graph[0].toSeq2D(), graph[1])
463+
460464
proc simplex_graph_fractional_py*(dim: int, ndiv: int): (seq[seq[float]], seq[seq[int]]) {.exportpy.} =
461465
let graph = simplex_graph_fractional(dim, ndiv)
462466
return (graph[0].toSeq2D(), graph[1])

0 commit comments

Comments
 (0)