本文整理了Java中org.ujmp.core.Matrix.eig()
方法的一些代码示例,展示了Matrix.eig()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.eig()
方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:eig
暂无
代码示例来源:origin: ujmp/universal-java-matrix-package
public Object call() {
Matrix[] result = getMatrixObject().getMatrix().eig();
result[0].showGUI();
result[1].showGUI();
return result;
}
代码示例来源:origin: ujmp/universal-java-matrix-package
Matrix[] eigenValueDecomposition = dense.eig();
Matrix[] luDecomposition = dense.lu();
Matrix[] qrDecomposition = dense.qr();
代码示例来源:origin: org.ujmp/ujmp-examples
Matrix[] eigenValueDecomposition = dense.eig();
Matrix[] luDecomposition = dense.lu();
Matrix[] qrDecomposition = dense.qr();
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testEigRandSmall() throws Exception {
Matrix a = createMatrixWithAnnotation(10, 10);
if (!isSupported(a, MatrixLibraries.EIG, MatrixLayout.SQUARE, Size.SMALL, EntryType.RANDN)) {
return;
}
a.randn(Ret.ORIG);
Matrix[] eig = a.eig();
Matrix prod1 = a.mtimes(eig[0]);
Matrix prod2 = eig[0].mtimes(eig[1]);
assertEquals(getLabel(), 0.0, prod1.minus(prod2).getRMS(), TOLERANCE);
if (a instanceof Erasable) {
((Erasable) a).erase();
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public void testEigSymmSmall() throws Exception {
Matrix a = createMatrixWithAnnotation(10, 10);
setRandSymmetric(a);
Matrix[] eig = a.eig();
Matrix prod1 = a.mtimes(eig[0]);
Matrix prod2 = eig[0].mtimes(eig[1]);
assertEquals(getLabel(), 0.0, prod1.minus(prod2).getRMS(), TOLERANCE);
if (a instanceof Erasable) {
((Erasable) a).erase();
}
if (prod1 instanceof Erasable) {
((Erasable) prod1).erase();
}
if (prod2 instanceof Erasable) {
((Erasable) prod2).erase();
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testEigSymmLarge() throws Exception {
if (!isTestLarge()) {
return;
}
Matrix a = createMatrixWithAnnotation(111, 111);
setRandSymmetric(a);
Matrix[] eig = a.eig();
Matrix prod1 = a.mtimes(eig[0]);
Matrix prod2 = eig[0].mtimes(eig[1]);
assertEquals(getLabel(), 0.0, prod1.minus(prod2).getRMS(), TOLERANCE);
if (a instanceof Erasable) {
((Erasable) a).erase();
}
if (prod1 instanceof Erasable) {
((Erasable) prod1).erase();
}
if (prod2 instanceof Erasable) {
((Erasable) prod2).erase();
}
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testEigRandLarge() throws Exception {
if (!isTestLarge()) {
return;
}
Matrix a = createMatrixWithAnnotation(110, 110);
if (!isSupported(a, MatrixLibraries.EIG, MatrixLayout.SQUARE, Size.LARGE, null)) {
return;
}
a.randn(Ret.ORIG);
Matrix[] eig = a.eig();
Matrix prod1 = a.mtimes(eig[0]);
Matrix prod2 = eig[0].mtimes(eig[1]);
assertEquals(getLabel(), 0.0, prod1.minus(prod2).getRMS(), TOLERANCE);
if (a instanceof Erasable) {
((Erasable) a).erase();
}
if (prod1 instanceof Erasable) {
((Erasable) prod1).erase();
}
if (prod2 instanceof Erasable) {
((Erasable) prod2).erase();
}
}
内容来源于网络,如有侵权,请联系作者删除!