本文整理了Java中org.ujmp.core.Matrix.equalsContent()
方法的一些代码示例,展示了Matrix.equalsContent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.equalsContent()
方法的具体详情如下:
包路径:org.ujmp.core.Matrix
类名称:Matrix
方法名:equalsContent
暂无
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testConstructorWithAnnotation() throws Exception {
Matrix m = createMatrixWithAnnotation(3, 3);
Matrix m2 = createMatrix(m);
assertTrue(getLabel(), m.equalsContent(m2));
assertTrue(getLabel(), m.equalsAnnotation(m2));
assertEquals(getLabel(), m, m2);
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public void testUJMP() {
Matrix original = Matrix.Factory.rand(3, 4, 5);
MLDenseDoubleMatrix mlDouble = new MLDenseDoubleMatrix(original);
assertEquals("dimension count", original.getDimensionCount(), mlDouble.getDimensionCount());
assertEquals("row count", original.getRowCount(), mlDouble.getRowCount());
assertEquals("column count", original.getColumnCount(), mlDouble.getColumnCount());
assertTrue("content equals", original.equalsContent(mlDouble));
}
代码示例来源:origin: ujmp/universal-java-matrix-package
@Test
public final void testClone() throws Exception {
Matrix m = createMatrixWithAnnotation(2, 2);
m.setAsDouble(1.0, 0, 0);
m.setAsDouble(2.0, 0, 1);
m.setAsDouble(3.0, 1, 0);
m.setAsDouble(4.0, 1, 1);
Matrix m2 = m.clone();
assertTrue(getLabel(), m.equalsContent(m2));
assertTrue(getLabel(), m.equalsAnnotation(m2));
if (m instanceof Erasable) {
((Erasable) m).erase();
}
}
内容来源于网络,如有侵权,请联系作者删除!