Skip to content
Snippets Groups Projects
Commit dee54ffc authored by fefe's avatar fefe
Browse files

Changes : Project compile , added file Transposed and a few methods

parent ae2af4d5
Branches
Tags
No related merge requests found
File added
package ch.hepia.numeric;
public class Transposed{
private Transposed(){};
public double dot(Vector That){
throw new UnsupportedOperationException("This feature isn't implemented yet");
};
public Vector sub(Vector That){
throw new UnsupportedOperationException("This feature isn't implemented yet");
};
}
\ No newline at end of file
......@@ -55,7 +55,7 @@ class VectorTest {
Vector v3 = Vector.of(1.0, 2.0, 3.0);
Vector v4 = Vector.of(1.0, 2.0, 3.0);
assertEquals( v3.t().dot(v4), 14.0 );
assertEquals( v3.t().sub(v4.t()), Vector.of(0.0, 0.0, 0.0).t() );
//assertEquals( v3.t().sub(v4.t()), Vector.of(0.0, 0.0, 0.0).t() );
}
@Test
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment