7/26/2023 0 Comments Arraylist in kotlin![]() ![]() multik-jvm: a Kotlin/JVM implementation of the math operations.So what are these different implementations?Ĭurrently, there are three different ones: This approach gives you a consistent API no matter what implementation you decide to use in your project. In Multik, the data structures are separate from the implementation of operations over them, and you need to add them as individual dependencies to your project. As a result, we have abandoned that approach and started Multik from scratch. However, this proved cumbersome and introduced unnecessary environmental complexity while providing little benefit to justify the overhead. Initially, we attempted to add Kotlin bindings to existing solutions, such as NumPy. ![]() Mk.math.min(b) // array-wise minimum elements Mk.math.log(b) // element-wise natural logarithm Perform mathematical operations over multidimensional arrays Val e = mk.identity(3) // create an identity array of shape (3, 3)Ĭreate a 3-dimensional array (multik supports up to 4 dimensions): Create multidimensional arraysĬreate an identity matrix (ones on the diagonal, the rest is set to 0) Without further ado, here are some of the things you can do with Multik. The library has a simple and straightforward API and offers optimized performance. Multik offers both multidimensional array data structures and implementations of mathematical operations over them. Today we’d like to share with you the first preview of a library that aims to serve as a foundation for such computations – Multik. ![]() A lot of data-heavy tasks, as well as optimization problems, boil down to performing computations over multidimensional arrays. ![]()
0 Comments
Leave a Reply. |