Tensor2x1 { public boolean isReal() { return Numbers.isReal(p1) && Numbers.isReal(p2); }  boolean isReal(); void set(double z, double v); void dot(@NonNull Tensor1x2 mat, @NonNull Tensor2x2 output); @NonNull @Override String toString(); public double p1; public double p2; }
@Test public void beReal() { Tensor2x1 t = new Tensor2x1(); assertTrue(t.isReal()); }
@Test public void beUnReal() { Tensor2x1 t = new Tensor2x1(); t.p2 = Double.NaN; assertFalse(t.isReal()); }