线性代数库适用于Android la4j

时间:2014-12-02 21:38:33

标签: android linear-algebra algebra

我如何导入la4j ??当我使用这个库制作2d矩阵时我有错误.Eclipse显示一切正常

Matrix Asemm =new Basic2DMatrix((int) 10,(int) 10);

此处记录

12-03 05:39:22.317: E/dalvikvm(940): Could not find class 'org.la4j.matrix.dense.Basic2DMatrix', referenced from method com.example.test_la4j.MainActivity.onCreate
12-03 05:39:22.317: W/dalvikvm(940): VFY: unable to resolve new-instance 1119 (Lorg/la4j/matrix/dense/Basic2DMatrix;) in Lcom/example/test_la4j/MainActivity;
12-03 05:39:22.387: D/dalvikvm(940): VFY: replacing opcode 0x22 at 0x001c
12-03 05:39:22.407: D/dalvikvm(940): DexOpt: unable to opt direct call 0x21f5 at 0x39 in Lcom/example/test_la4j/MainActivity;.onCreate
12-03 05:40:20.178: E/dalvikvm(1005): Could not find class 'org.la4j.matrix.dense.Basic2DMatrix', referenced from method com.example.test_la4j.MainActivity.onCreate
12-03 05:40:20.178: W/dalvikvm(1005): VFY: unable to resolve new-instance 1119 (Lorg/la4j/matrix/dense/Basic2DMatrix;) in Lcom/example/test_la4j/MainActivity;
12-03 05:40:20.187: D/dalvikvm(1005): VFY: replacing opcode 0x22 at 0x001c
12-03 05:40:20.187: D/dalvikvm(1005): DexOpt: unable to opt direct call 0x21f5 at 0x39 in Lcom/example/test_la4j/MainActivity;.onCreate
12-03 05:40:20.876: D/AndroidRuntime(1005): Shutting down VM
12-03 05:40:20.876: W/dalvikvm(1005): threadid=1: thread exiting with uncaught exception (group=0x41465700)
12-03 05:40:20.886: E/AndroidRuntime(1005): FATAL EXCEPTION: main
12-03 05:40:20.886: E/AndroidRuntime(1005): java.lang.NoClassDefFoundError: org.la4j.matrix.dense.Basic2DMatrix
12-03 05:40:20.886: E/AndroidRuntime(1005):      com.example.test_la4j.MainActivity.onCreate(MainActivity.java:26)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.app.Activity.performCreate(Activity.java:5133)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1087)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2175)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2261)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.app.ActivityThread.access$600(ActivityThread.java:141)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.app.ActivityThread$H.handleMessage(ActivityThread.java:1256)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.os.Handler.dispatchMessage(Handler.java:99)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.os.Looper.loop(Looper.java:137)
12-03 05:40:20.886: E/AndroidRuntime(1005):      android.app.ActivityThread.main(ActivityThread.java:5103)
12-03 05:40:20.886: E/AndroidRuntime(1005):      java.lang.reflect.Method.invokeNative(Native Method)
12-03 05:40:20.886: E/AndroidRuntime(1005):      java.lang.reflect.Method.invoke(Method.java:525)
12-03 05:40:20.886: E/AndroidRuntime(1005):      com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
12-03 05:40:20.886: E/AndroidRuntime(1005):      com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
12-03 05:40:20.886: E/AndroidRuntime(1005):      dalvik.system.NativeStart.main(Native Method)
12-03 05:40:49.157: I/Process(1005): Sending signal. PID: 1005 SIG: 9

0 个答案:

没有答案