4041424344454647484950
INDArray a=v.outerProduct(v); assertTrue(a instanceof AMatrix); AMatrix m=(AMatrix)a; AVector v2=v.clone(); v2.square(); assertEquals(v2,m.getLeadingDiagonal()); } @Test public void testInnerProducts() { INDArray a=Array.newArray(1,1,1);
610611612613614615616617618619620
assertTrue(v.epsilonEquals(b.toVector())); b = a.exactClone(); v = b.toVector(); b.square(); v.square(); assertEquals(v, b.toVector()); } private void testIndexedAccess(INDArray a) { if ((a.elementCount() <= 1)) return;
103104105106107108109110111112113
} else { if (!line.isFullyMutable()) { line = line.sparseClone(); data[i] = line; } line.square(); } } } @Override