@Test
public void testEquals_Tensor_float() {

    Tensor t1 = new Tensor(new float[] {0.2f, 0.4f, 0.6f, 0.8f});        
    Tensor t2 = new Tensor(new float[] {0.2f, 0.4f, 0.6f, 0.8f});                
    Tensor t3 = new Tensor(new float[] {0.2f, 0.4f, 0.7f, 0.8f});                
 
    float delta = 1e-7f;
    boolean expResult = true;
    boolean result = t1.equals(t2, delta);
    assertEquals(expResult, result);
    
    expResult = false;
    result = t1.equals(t3, delta);
    assertEquals(expResult, result);        
}