org.ujmp.core.Matrix.eig()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(2.7k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中org.ujmp.core.Matrix.eig()方法的一些代码示例,展示了Matrix.eig()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.eig()方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:eig

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();
  }
}

相关文章

Matrix类方法