chiark
/
gitweb
/
~ian
/
moebius3.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64e1ebf
)
helixish: remember to transform back from findcurve basis (!)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 30 Dec 2017 22:29:34 +0000
(22:29 +0000)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sat, 30 Dec 2017 22:29:34 +0000
(22:29 +0000)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
helixish.py
patch
|
blob
|
history
diff --git
a/helixish.py
b/helixish.py
index c3a1797254d485bb86c71ae16ea1603605365822..27485eac5e965293e7311976f39466fef807ca08 100644
(file)
--- a/
helixish.py
+++ b/
helixish.py
@@
-252,6
+252,7
@@
class HelixishCurve():
findcurve_subproc.stdin.flush()
hc.func = symbolic.get_python()
+ hc.findcurve_basis = findcurve_basis
commentary = ''
while True:
@@
-287,4
+288,5
@@
class HelixishCurve():
ours[1] = sqrt(dist - hc.threshold)
asmat = hc.func(*ours)
p = asmat[:,0]
+ p = augmatmultiply(hc.findcurve_basis, p)
return p