Stefan van der Walt
f09c1208e7
ENH: graph: Fix typo.
2011-05-17 19:24:05 +02:00
Zach Pincus
340d92c711
Fix memory leak due to not properly using __cinit__ in heap classes
2011-05-09 10:04:32 -04:00
Stefan van der Walt
082ff69549
BUG: More Python3 fixes by Christoph Gohlke.
2011-03-14 17:06:22 +02:00
Stefan van der Walt
8c73f52d18
BUG: Fix mcp tests.
2011-03-13 17:13:48 +02:00
Zachary Pincus
61084612e7
add tests
2011-01-07 08:58:05 -05:00
Zachary Pincus
0994d80d4e
allow negative-cost elements
2011-01-07 08:08:54 -05:00
Zachary Pincus
171bd18f80
fix infinite-handling in mcp and precision issues in heap
2011-01-07 08:01:21 -05:00
Stefan van der Walt
20ab4cdaff
ENH: Update Cython imports.
2010-11-07 01:12:54 +02:00
Stefan van der Walt
1cde37aee6
Merge speed fixes to heap.pyx from Zach.
2010-04-10 22:29:09 +02:00
Zachary Pincus
4a0e4e2285
Oops: actually fix heap performance problem...
2010-04-08 18:13:45 -04:00
Zachary Pincus
56a5cadde2
Performance fix for heap; correctness for _mcp
...
(1) normalize_indices in _mcp.pyx should convert indices to ints: fixed
(2) huge (order of magnitude) performance problems in heap.pyx from changing
lines like:
ii = (i-1)/2 # CalcPrevAbs
to:
ii = (int)(i-1)/2 # CalcPrevAbs
for some reason, the latter goes through the python division machinery!
However, the former is invalid for cython >=0.12, so the proper solution is:
ii = (i-1)//2 # CalcPrevAbs
2010-04-08 18:11:47 -04:00
Stefan van der Walt
29d6046378
graph: Fix typo in heap docs. Wrap long line.
2010-01-01 13:32:11 +02:00
Stefan van der Walt
bc8ab59966
graph: mcp: Clean up long lines. Fix tests.
2010-01-01 13:24:32 +02:00
Stefan van der Walt
93c90377c3
graph: spath: Fix documentation indentation.
2010-01-01 13:01:56 +02:00
Stefan van der Walt
b7706e6550
graph: heap: Cast known integer after division.
2009-12-31 10:54:25 +02:00
Zachary Pincus
07fbf605b2
Fix heap.pyx to work when infinite values are pushed.
2009-12-30 14:31:08 -05:00
Zachary Pincus
ad141b680d
Finish commits of changes to graph: __init__ and setup and remove old cruft.
2009-12-29 13:31:55 -05:00
Zachary Pincus
8b2a8b5031
Rewrite spath.shortest_path to use new mcp classes
...
spath.shortest_path presents the same interface, but now uses the new mcp
classes internally, which means that it is now fully n-d, and can also find
the shortest path along any given axis. The old output format has been
retained, but is a bit weird for non-2d arrays. A more sensible n-d output
format is available, but not enabled by default.
2009-12-29 13:17:18 -05:00
Zachary Pincus
6f39426485
Added classes for minimum-cost-pathfinding through n-d arrays.
...
mcp.py presents the interface and a simple usage example; the classes of
interest are in _mcp.pyx. Basic tests are included.
2009-12-29 13:05:53 -05:00
Zachary Pincus
4741c113ca
Add fast binary heap classes (from Almar Klein)
...
cython classes for fast binary heaps (that store (value, reference) pairs) are
now available from scikits.image.graph.heap
2009-12-29 13:04:22 -05:00
Stefan van der Walt
7dbbf8b397
Cython division fixes. Ignore version file after build.
2009-12-03 09:45:20 +02:00
Stefan van der Walt
dbbfb6e3e5
spath: Add Cython definition file to allow external use.
2009-12-03 09:36:56 +02:00
Stefan van der Walt
b22d10e2c8
spath: Remove debug prints.
2009-11-24 01:22:00 +02:00
Stefan van der Walt
e3b5e09a34
trace_path: reformat docs
2009-11-22 13:27:15 +02:00
Stefan van der Walt
dc6715bc08
trace_path: Add tests.
2009-11-22 13:20:41 +02:00
Stefan van der Walt
a0b2430726
trace_path: PEP7 fixes.
2009-11-22 13:15:19 +02:00
Stefan van der Walt
81c4019887
Add Zachy Pincus's trace_path routine for finding a low-cos path between a given start and end point.
2009-11-22 13:09:20 +02:00
Stefan van der Walt
cc9f2ffa5d
Remove Cython-generated C-files.
2009-11-04 11:28:32 +02:00
Stefan van der Walt
ab90617cbe
Rename analysis -> graph.
2009-11-04 07:52:51 +02:00