[Mathlib-commitlog] SF.net SVN: mathlib:[613] JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib /ma
Status: Beta
Brought to you by:
st_mueller
|
From: <st_...@us...> - 2009-01-05 13:07:17
|
Revision: 613
http://mathlib.svn.sourceforge.net/mathlib/?rev=613&view=rev
Author: st_mueller
Date: 2009-01-05 13:07:14 +0000 (Mon, 05 Jan 2009)
Log Message:
-----------
changed handling of global variables
Modified Paths:
--------------
JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib/matrix/testChol.java
Modified: JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib/matrix/testChol.java
===================================================================
--- JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib/matrix/testChol.java 2009-01-05 13:06:34 UTC (rev 612)
+++ JMathLib/trunk/src/jmathlibtests/toolbox/jmathlib/matrix/testChol.java 2009-01-05 13:07:14 UTC (rev 613)
@@ -1,6 +1,7 @@
package jmathlibtests.toolbox.jmathlib.matrix;
import jmathlib.core.interpreter.Interpreter;
+import jmathlib.core.interpreter.*;
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
@@ -34,11 +35,22 @@
assertTrue(ml.getScalarValueBoolean("aaa"));
}
public void testNot03() {
- double[][] a = {{1.0, 2.0, 3.0},{-1.0, 0.0, 0.0},{11.23, -1.5, 0.0}};
- boolean[][] b = {{false, false, false},{ false, true, true},{ false,false, true}};
+ ErrorLogger.debugLine("fffffaa a00= "+ml.getArrayValueRe("a")[0][0]);
+ double[][] a = {{111.0, 2.0, 3.0},{-1.0, 0.0, 0.0},{11.23, -1.5, 0.0}};
+ boolean[][] b = {{false, false, false},{ false, true, true},{ false, false, true}};
ml.setArray("a", a, null);
- ml.executeExpression("setdebug(1)");
+ ErrorLogger.debugLine("fffffaa a00= "+ml.getArrayValueRe("a")[0][0]);
+
+ //ml.executeExpression("setdebug(1)");
+ //ml.executeExpression("a");
ml.executeExpression("who, z = not(a)");
+ double[][] v = ml.getArrayValueRe("a");
+ boolean[][] vv = ml.getArrayValueBoolean("z");
+ for (int y=0; y<v.length; y++)
+ for (int x=0; x<v[0].length; x++ )
+ ErrorLogger.debugLine("v = "+y+" "+x+" "+vv[y][x]+" "+v[y][x]);
+
+ ErrorLogger.debugLine("fffffaa");
assertTrue(Compare.ArrayEquals(b, ml.getArrayValueBoolean("z")));
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|