if (m.isPackedArray()) {
assertNotNull(m.asDoubleArray());
assertTrue(m.asDoubleArray()==m.getArray());
} else {
assertNull(m.asDoubleArray());
}
int[] ix = IntArrays.rand(shape);
int off=m.getArrayOffset()+IntArrays.dotProduct(strides,ix);
assertEquals(data[off],m.get(ix),0.0);