📄 testadjoint.java
字号:
package jmathlibtests.toolbox.jmathlib.matrix;
import jmathlib.core.interpreter.Interpreter;
import jmathlib.tools.junit.framework.*;
import jmathlibtests.Compare;
public class testAdjoint extends TestCase {
protected Interpreter ml;
public testAdjoint(String name) {
super(name);
}
public static void main (String[] args) {
jmathlib.tools.junit.textui.TestRunner.run (suite());
}
protected void setUp() {
ml = new Interpreter(true);
}
public static Test suite() {
return new TestSuite(testAdjoint.class);
}
public void testAdjoint01() {
double[][] b = {{5, -3},{-4, 2}};
ml.executeExpression("z = adjoint([2,3;4,5])");
assertTrue(Compare.ArrayEquals(b, ml.getArrayValueRe("z")));
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -