Tensor_S64 extends Tensor<Tensor_S64> { @Override protected int innerArrayLength() { return d.length; } Tensor_S64(int... shape );  Tensor_S64(); @Override double getDouble(int... coordinate); @Override Object getData(); @Override void setData(Object data); @Override Tensor_S64 create(int... shape); @Override void zero(); @Override Class getDataType(); public long d; }
@Test public void getInnerLength() { Tensor_S64 T = new Tensor_S64(3,4,1); T.reshape(2,2); assertEquals(12,T.innerArrayLength()); }