Skip to content
Snippets Groups Projects
Commit 200581fd authored by tanguy.dietrich's avatar tanguy.dietrich
Browse files

modified class Transposed

parent b8af75a7
No related branches found
No related tags found
2 merge requests!2Tanguy,!1David
package ch.hepia.numeric;
public class Transposed{
final private Vector v;
Transposed(Vector v) {
this.v = v;
}
public double dot(Vector vect){
throw new UnsupportedOperationException("This feature isn't implemented yet");
}
public Transposed sub(Transposed t){
return new Transposed(t.v.sub(v));
}
public Vector t(){
return this.v;
}
}
\ No newline at end of file
...@@ -14,7 +14,7 @@ final public class Vector { ...@@ -14,7 +14,7 @@ final public class Vector {
} }
public Transposed t() { public Transposed t() {
throw new UnsupportedOperationException("This feature isn't implemented yet"); return new Transposed(this);
} }
public int len() { public int len() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment