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