Chaitanya_klk
Chaitanya_klk

Reputation: 61

UnsatisfiedLinkError using jblas in Android for Matrix exponential

I need to use matrix exponential function for my Android application. I have used the library jblas (jblas.org). But it returns the following error and the application crashes!

java.lang.UnsatisfiedLinkError: No implementation found for void         
org.jblas.NativeBlas.dgemm(char, char, int, int, int, double, double[], 
int, int, double[], int, int, double, double[], int, int) (tried 
Java_org_jblas_NativeBlas_dgemm and 
Java_org_jblas_NativeBlas_dgemm__CCIIID_3DII_3DIID_3DII)
        at org.jblas.NativeBlas.dgemm(Native Method)
        at org.jblas.SimpleBlas.gemm(SimpleBlas.java:247)
        at org.jblas.DoubleMatrix.mmuli(DoubleMatrix.java:1781)
        at org.jblas.DoubleMatrix.mmul(DoubleMatrix.java:3138)
        at org.jblas.MatrixFunctions.expm(MatrixFunctions.java:428)

Upvotes: 0

Views: 404

Answers (1)

shizhen
shizhen

Reputation: 12583

Try these steps to get an Android version of jblas:

  1. Checkout the source code of jblas from: https://github.com/mikiobraun/jblas
  2. Recompile the c source code: https://github.com/mikiobraun/jblas/tree/master/src/main/c using Android CMake tool chains. You will get the required shared libs, e.g. arm64-v8a, x86 or x86_64.

Upvotes: 0

Related Questions