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

    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 …

  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 …

  4. 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

  5. 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 …

  6. 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...

  7. 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 …

  8. 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 …

  9. Is Nd4j (Deeplearning4J) too large to actually use in an android …

    Mar 1, 2021 · If anyone per chance reading this is faced with the same situation as I: I've switched over to the new org.jetbrains.kotlinx Multik library, which provides the same basic NDArray …

  10. "Order by Col1, Col2" using entity framework - Stack Overflow

    Nov 9, 2009 · I need to order by 2 columns using the entity framework. How is that done?