I was looking for example to try out some of new f...
# mathematics
j
I was looking for example to try out some of new features in Multik e.g. https://blog.jetbrains.com/kotlin/2021/10/multik-0-1-is-out/#Solving-linear-systems ....
I have sample that has access to and shows fantasy football (soccer!) data....is this something that Multik could be applied to e.g. find optimal team given particular criteria/constraints etc?
a
I've recently finished a basic Multik - KMath integration. While it's internals are robust, I am not always happy with the API. I think that some external examples and feedback would be quite helpful.
j
Was just trying out okAlgo linear algebra library....is this functionality that likes of Mutik would also support? https://twitter.com/joreilly/status/1452072933346656256?s=20
a
Oh, I did not know they did a kotlin API. Ojalgo is a huge project that took a lot of years to perfect. I do not think it will be possible to do that In Multik soon. If we are talking about wrapper for ojalgo, it is planned in KMath. And it should be compatible with Multik wrapper. The difference of ideology is that Multik creates brand new math engine whereas kmath provides an API to wrap existing libraries.
And if we are talking about expression based optimization, it is already available: https://github.com/mipt-npm/kmath/blob/dev/examples/src/main/kotlin/space/kscience/kmath/fit/chiSquared.kt. Right now only for numbers, but we are one PR merge away from doing that on matrices as well.
👍 1
j
the other factor here is whether particular library supports kotlin multiplatform or not
a
KMath is fully multiplatform (automatic differentiation PR is JVM only for now, but PR is complete by @Iaroslav Postovalov fixes that). Multik is JVM only for now. I think they have some plans to move to multiplatform eventually, but not yet.
👍 2