Add fast quaternion implementation, minor changes to complex #156

Merged
CommanderTvis merged 40 commits from feature/quaternion into dev 2021-02-11 11:01:30 +03:00
CommanderTvis commented 2020-10-27 14:07:56 +03:00 (Migrated from github.com)

closes #155

closes #155
CommanderTvis commented 2020-10-27 14:08:25 +03:00 (Migrated from github.com)

This PR currently lacks tests, also complex . quaternion operations are needed

This PR currently lacks tests, also complex . quaternion operations are needed
altavir (Migrated from github.com) reviewed 2021-01-05 16:57:40 +03:00
altavir (Migrated from github.com) left a comment

Maybe move complex and quaternion to a separate module, say kmath-complex? It would help to maintain proper stability guarantees. I am not sure about that, but it does not make a lot of sense to keep them in the core.

Maybe move complex and quaternion to a separate module, say `kmath-complex`? It would help to maintain proper stability guarantees. I am not sure about that, but it does not make a lot of sense to keep them in the core.
altavir commented 2021-01-19 15:11:07 +03:00 (Migrated from github.com)

Update plugin version to 0.7.3-1.4.30-RC to fix tests.

Update plugin version to `0.7.3-1.4.30-RC` to fix tests.
altavir commented 2021-01-19 19:39:53 +03:00 (Migrated from github.com)

Please resolve conflicts

Please resolve conflicts
altavir (Migrated from github.com) requested changes 2021-02-08 19:53:32 +03:00
altavir (Migrated from github.com) left a comment

Looks good. Only small changes are in order.

Looks good. Only small changes are in order.
altavir (Migrated from github.com) commented 2021-02-08 19:09:11 +03:00

Revert to more readable with please

Revert to more readable `with` please
@ -0,0 +41,4 @@
get() = atan(im / re)
private val PI_DIV_2 = Complex(PI / 2, 0)
altavir (Migrated from github.com) commented 2021-02-08 19:13:46 +03:00

Lazy will be much more expensive here than an assignment. I do not think that there is a difference, but probably better to keep it simple.

Lazy will be much more expensive here than an assignment. I do not think that there is a difference, but probably better to keep it simple.
altavir (Migrated from github.com) commented 2021-02-08 19:52:45 +03:00

Move appropriate tests to kmath-complex and remove the dependency.

Move appropriate tests to kmath-complex and remove the dependency.
altavir (Migrated from github.com) approved these changes 2021-02-11 11:01:20 +03:00
Sign in to join this conversation.
No description provided.