About 15 results
Open links in new tab
  1. Kotlin/Multik library: class naming and how to index elements in array ...

    May 16, 2024 · Couple of questions related to using multidimensional arrays in Kotlin via the Multik library. First question: why is it necessary to import both mk and zeros here in order to gain access to …

  2. Multidimensional '3D' Matrix in Kotlin - Stack Overflow

    Access the elements as usual data[i][j][k] Using Multik Multik Multidimensional array library for Kotlin. Syntax for creating 3D array

  3. converting python code to kotlin (numpy, tensor) - Stack Overflow

    Apr 21, 2023 · I also tried to use argmax function from Multik library but the input type is not the same. (not Tensor, but MultiArray). Any other suggestion for migration from python to kotlin would be …

  4. Kotlin 2D array calculate mean by column - Stack Overflow

    Nov 22, 2021 · I have a 2D array and I want to calculate the mean by column. For example: [[1,2,3],[4,5,6]] -> [2.5,3.5,4.5] In python, I will simple do this np.mean(array, axis=1) How could I …

  5. multik vectorized subtraction and multiplication - Stack Overflow

    Feb 4, 2022 · I am looking to perform the following on android using multik and I have been unsuccessful: Given A = [3x3] v = [nx3] C = [1x3] result = A*(v-C) Is there a way to perform the

  6. Integrating Chaquopy 16.0 in kotlin multiplatform's shared module, …

    Jan 2, 2025 · when I try importing python in shared module's class it does not get imported. How can I fix it and can access numpy package in my kmm application? EDIT: If someone wants to suggest …

  7. Does Kotlin have something similar to an argmax method?

    So let's say I have a numpy array like this: import numpy as np mat = np.array([[4, 8, 1], [5, 10, 6]]) print(np.argmax(mat)) # prints 4 print(np.argmax(mat, axis=1)) # prints [1 1], index of max...

  8. What kotlin package gives numpy capabilities? - Stack Overflow

    Jun 16, 2021 · Multik Architecture Initially, we attempted to add Kotlin bindings to existing solutions, such as NumPy. However, this proved cumbersome and introduced unnecessary environmental …

  9. How to set the environment variable LD_LIBRARY_PATH in linux

    Don't ask me why, but this did not work, until I made this small change: mv ~/.bashrc ~/.bash_profile with otherwise the same code and same file privileges. It then worked. This is on Ubuntu 20.04.1 LTS. …

  10. How to fix Android project build failing with .so is not an ABI

    Jul 24, 2023 · splits { abi { enable true reset() include "arm64-v8a" } } but those didn't help. If I revert the upgrade the project builds fine, but I want to use the latest version of Gradle plugin. Edit: For extra …