assertEquals(t,t2);
assertEquals(t,m.innerProduct(v));
}
private void doNDArrayTest(AMatrix m) {
NDArray a=NDArray.newArray(m.getShape());
a.set(m);
int rc=m.rowCount();
int cc=m.columnCount();
for (int i=0; i<rc; i++) {
assertEquals(m.getRow(i),a.slice(i));
}
for (int i=0; i<cc; i++) {
assertEquals(m.getColumn(i),a.slice(1,i));
}
}