This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
v2.1
This version adds a number of QoL improvements as well as improvements to precision for a nominal cycle cost:
- The
kln::sqrt
free function is available and accepts as its argumentkln::rotor
,kln::branch
,kln::translator
, andkln::motor
. The function returns the quantityx
such thatx*x
is equal to the argument to within a good approximation. - Motors can now be multiplied by rotors and translators to produce new motors containing the composite action. This was an oversight from the existing API.
- Line normalization was fixed so that
l * ~l
properly produces unity. - Additional helper routines have been added to compute
rcp
,sqrt
, andrsqrt
to ~22 bits of accuracy.