chiark / gitweb /
Ian Jackson [Sun, 8 Apr 2018 16:18:23 +0000 (17:18 +0100)]
Merge branch 'master' into alt
These are two identical ways to get the same result.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 15:27:05 +0000 (16:27 +0100)]
curveopt: add a commented-out call to synch everything
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 15:26:53 +0000 (16:26 +0100)]
curveopt: fix handling of empty lines from findcurve
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 16:17:44 +0000 (17:17 +0100)]
Revert "simplex wip: compiles"
This reverts commit
657118ffcf7627d9c97d66065fba358248bbf860.
Ian Jackson [Sun, 8 Apr 2018 16:17:30 +0000 (17:17 +0100)]
Revert "curveopt: some debug etc."
This reverts commit
35a742a8217c9b54eeea81a8e5c139295f528de8.
Ian Jackson [Sun, 8 Apr 2018 16:17:07 +0000 (17:17 +0100)]
Revert "curveopt: try simple, but no good"
This reverts commit
7b5370bb5115b5179c4fb36093677330ef909e59.
Ian Jackson [Sun, 8 Apr 2018 16:15:31 +0000 (17:15 +0100)]
curveopt: try simple, but no good
It seems to just shrink the simplex and then exit. I think it doesn't
manage to find the narrow trench in configuration space in which
possible improvements lie.
Also tried gsl_multimin_fminimizer_nmsimplex but this is even slower
than siman. So we will go back to siman now.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 15:27:20 +0000 (16:27 +0100)]
curveopt: some debug etc.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 15:27:05 +0000 (16:27 +0100)]
curveopt: add a commented-out call to synch everything
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 15:26:53 +0000 (16:26 +0100)]
curveopt: fix handling of empty lines from findcurve
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 15:10:33 +0000 (16:10 +0100)]
simplex wip: compiles
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 14:47:57 +0000 (15:47 +0100)]
Revert "simplex wip: use gsl_vector_get for X, for abandonment"
This reverts commit
29cb20f6187aeed6da1f1a7efa3473ee46015ece.
Ian Jackson [Sun, 8 Apr 2018 14:46:07 +0000 (15:46 +0100)]
simplex wip: use gsl_vector_get for X, for abandonment
This is too painful because it breaks POINT, which everyone expects to
be able to inspect with []
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 13:21:48 +0000 (14:21 +0100)]
curveopt: show it in a better way
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 13:16:45 +0000 (14:16 +0100)]
curveopt: use new thing
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 13:14:31 +0000 (14:14 +0100)]
curveopt: bespoke debugging
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 13:05:48 +0000 (14:05 +0100)]
curveopt: parallelise findcurve processes
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 13:00:25 +0000 (14:00 +0100)]
curveopt: use a fresh findcurve process for each curve
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 12:53:38 +0000 (13:53 +0100)]
curveopt: some more checks
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 12:53:30 +0000 (13:53 +0100)]
curveopt: better costs, seems more plausible now
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 12:41:50 +0000 (13:41 +0100)]
curveopt: ensure |EF| and |HG| are positive
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 8 Apr 2018 12:37:26 +0000 (13:37 +0100)]
curveopt: new approach
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 23:28:54 +0000 (00:28 +0100)]
curveopt: wip, demos more of the same bug
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 23:14:13 +0000 (00:14 +0100)]
curveopt: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 22:54:55 +0000 (23:54 +0100)]
curveopt: wip, observe a bug
This algorithm encourages a segment with a curve either side of it to
be shorter than its neighbours. In this test case there is another
bug: the cp[1] (F) and cp[2] (G) vectors are wrong, exaggerating the
effect of the bug.
To fix the wrong encouragement bug, I think we will have to split the
penalty for curvature from the penalty for density variation.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 22:41:34 +0000 (23:41 +0100)]
curveopt: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 22:11:02 +0000 (23:11 +0100)]
curveopt: wip
Ian Jackson [Sat, 7 Apr 2018 22:10:47 +0000 (23:10 +0100)]
Makefile: fix spelling of COPTIMISE
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 21:59:32 +0000 (22:59 +0100)]
curveopt: test a bit
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 21:59:26 +0000 (22:59 +0100)]
curveopt: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 21:40:33 +0000 (22:40 +0100)]
curveopt: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 21:29:12 +0000 (22:29 +0100)]
visual: reduce nv and nw for debugging
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 21:28:53 +0000 (22:28 +0100)]
curveopt.py: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 20:26:02 +0000 (21:26 +0100)]
curveopt.py: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 20:06:26 +0000 (21:06 +0100)]
moebius: break out moebez.py
curveopt is going to want these. We need to move it into a separate
file to avoid a circular import dependency.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 20:02:03 +0000 (21:02 +0100)]
curveopt: rename from helixish
We're going to want to reuse the findcurve invocation machinery. Most
of the rest of this is specific to the abandoned helixish approach, so
is due to be hacked away. For now just rename this unused file.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 20:00:14 +0000 (21:00 +0100)]
moebius: break out DiscreteBezier (nfc)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 19:52:12 +0000 (20:52 +0100)]
moebius: pass nt and it to MoebiusHalf, rather than just t
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 19:47:45 +0000 (20:47 +0100)]
curveopt: symbolic: compiles
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 19:37:48 +0000 (20:37 +0100)]
curveopt: symbolic: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 18:42:55 +0000 (19:42 +0100)]
curveopt: symbolic: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 18:25:21 +0000 (19:25 +0100)]
curveopt: symbolic: wip, before abandon provision for fdf
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 18:00:28 +0000 (19:00 +0100)]
curveopt: symbolic: wip, before go back to conditional in C
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 15:55:37 +0000 (16:55 +0100)]
curveopt: symbolic: wip
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 11:00:53 +0000 (12:00 +0100)]
Revert "RecursiveBezierishCurve: Try it"
This reverts commit
9a77b7a72b35200447e25c105ae383a1186a3899.
Ian Jackson [Sat, 7 Apr 2018 10:59:10 +0000 (11:59 +0100)]
RecursiveBezierishCurve: Try it
This does not seem to make any difference. How interesting. I
suspect that in fact this construction arranges, somehow, to get the
same cubics for the two halves as for the original. But I CBA to do
the algebra to check.
Ah well, we will revert this and try something else.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 10:01:35 +0000 (11:01 +0100)]
helixish: Abandon
Remove calls to Helixish and hence to findcurve et al.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 09:59:56 +0000 (10:59 +0100)]
Revert "helixish: try three paths"
This reverts commit
7de6976b27662081219291a52947d19bee422d44.
Ian Jackson [Sat, 7 Apr 2018 09:58:44 +0000 (10:58 +0100)]
helixish: try three paths
This shows that this approach does not work.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 7 Apr 2018 09:46:17 +0000 (10:46 +0100)]
Revert "visual: debugging with one in darker blue"
This reverts commit
756c4104abae08a963de109dd9a2ea4659698f40.
Ian Jackson [Sun, 31 Dec 2017 19:55:49 +0000 (19:55 +0000)]
Revert "helixish: attempt at the whole thing"
This reverts commit
906edec3ef60cf3e0567c713b2a68688edb634d4.
Ian Jackson [Sun, 31 Dec 2017 16:47:55 +0000 (16:47 +0000)]
helixish: attempt at the whole thing
This does not really work. Should revert and try bits of it
one at a time, etc.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 31 Dec 2017 01:28:45 +0000 (01:28 +0000)]
helixish: seems to be able to solve
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 31 Dec 2017 01:13:28 +0000 (01:13 +0000)]
helixish: seems to be able to solve but answer is wrong due to wrong energy
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 31 Dec 2017 01:13:16 +0000 (01:13 +0000)]
helixish: debugging changes
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 31 Dec 2017 00:56:22 +0000 (00:56 +0000)]
helixish: fix .iters_fixed_T
If this is zero, gsl_siman_solve does not do anything.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 31 Dec 2017 00:56:04 +0000 (00:56 +0000)]
helixish: debugging changes
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 31 Dec 2017 00:55:20 +0000 (00:55 +0000)]
helixish: debugging changes
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 23:22:57 +0000 (23:22 +0000)]
visual: debugging changes
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 22:39:41 +0000 (22:39 +0000)]
helixish: fix sign problems
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 22:29:34 +0000 (22:29 +0000)]
helixish: remember to transform back from findcurve basis (!)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 22:28:44 +0000 (22:28 +0000)]
helixish: try_s and try_t now always >= 0
Since we add tau if necessary
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 22:28:33 +0000 (22:28 +0000)]
visual: debugging changes
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 22:12:53 +0000 (22:12 +0000)]
visual: debugging with one in darker blue
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 20:34:21 +0000 (20:34 +0000)]
helixish: ensure s and t are >0
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 20:34:14 +0000 (20:34 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 19:28:39 +0000 (19:28 +0000)]
helixish: dist_pq_plane should be the distance in the dp/dq plane
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 19:28:18 +0000 (19:28 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 13:51:29 +0000 (13:51 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 13:51:01 +0000 (13:51 +0000)]
helixish: convert r from polynomial back to our unscaled plane coordinates
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 13:49:57 +0000 (13:49 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 13:49:36 +0000 (13:49 +0000)]
helixish: add a trivial comma (nfc)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 13:49:21 +0000 (13:49 +0000)]
helixish: rename vdbg_railway_angle for clarity (nfc)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 13:48:46 +0000 (13:48 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 13:11:25 +0000 (13:11 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 13:01:01 +0000 (13:01 +0000)]
visdebug: make circle of variable size
Existing arrows have their circle sizes adjusted according to the
lengths of the arrows.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:55:49 +0000 (12:55 +0000)]
visdebug: introduce vdbg().circle() (nfc)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:34:04 +0000 (12:34 +0000)]
helixish: get sense of phi right
In "Railway problem", phi is the direction we _leave_ Q. Whereas in
our original representation, we have a direction vector in the
positive sense of the parameter (ie, for Q, the arrival direction).
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:33:46 +0000 (12:33 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:31:00 +0000 (12:31 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:30:55 +0000 (12:30 +0000)]
helixish: angles are unconventionally represented in "Railway problem"
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:30:18 +0000 (12:30 +0000)]
helixish: make railway basis right-handed
Previously the y axis was reversed!
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:24:59 +0000 (12:24 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:17:01 +0000 (12:17 +0000)]
helixish: move so we put the basis stuff for debugging first
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:13:13 +0000 (12:13 +0000)]
Revert "helixish: railway_inplane_basis should not include a scale factor"
This reverts commit
5aba1dbd37afe0078ba09dbf6cf142b559d82d2b.
OK, so we'll make the railway basis have a scale in the (x,y) plane
so that Q is at [1,0,0]. This is used for debugging output, only.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:11:34 +0000 (12:11 +0000)]
helixish: railway_inplane_basis should not include a scale factor
Err, maybe it should ?
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:06:46 +0000 (12:06 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 30 Dec 2017 12:03:41 +0000 (12:03 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 23 Dec 2017 11:42:33 +0000 (11:42 +0000)]
helixish: debugging output, some bodges re color handling weirdness
It seems that ring() ignores the color if it is in kw, but not
if it is a separate parameter. WTF.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 23 Dec 2017 11:27:49 +0000 (11:27 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 17 Dec 2017 16:52:40 +0000 (16:52 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 17 Dec 2017 16:52:30 +0000 (16:52 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 17 Dec 2017 16:05:24 +0000 (16:05 +0000)]
visual: debug arrows better
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 17 Dec 2017 11:34:43 +0000 (11:34 +0000)]
helixish: bugfix
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 17 Dec 2017 11:34:37 +0000 (11:34 +0000)]
helixish: debugging output
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sun, 17 Dec 2017 11:33:43 +0000 (11:33 +0000)]
visdebug: support caller-specified colour tuples
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 16 Dec 2017 14:46:41 +0000 (14:46 +0000)]
helixish: debugging
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Sat, 16 Dec 2017 11:56:51 +0000 (11:56 +0000)]
helixish: debugging
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Wed, 13 Dec 2017 00:07:39 +0000 (00:07 +0000)]
more debugging
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Ian Jackson [Tue, 12 Dec 2017 21:38:34 +0000 (21:38 +0000)]
more debugging
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>