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

Function t()

parent 37ebafdb
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ final public class Vector {
}
public Transposed t() {
throw new UnsupportedOperationException("This feature isn't implemented yet");
return new Transposed(this);
}
public int len() {
......@@ -32,6 +32,10 @@ final public class Vector {
void set(int i, double value) {
this.values.set(i, value);
}
private List<Double> getValues(){
return this.values;
}
public Vector add(Vector that) {
List<Double> newVec = new ArrayList<>();
......@@ -42,7 +46,9 @@ final public class Vector {
}
public Vector mul(double m) {
throw new UnsupportedOperationException("This feature isn't implemented yet");
//List<Double> newVec = new ArrayList<>();
//for (elem : this.get()){newVec.add(elem*m);}
//return new Vector(newVec);
}
public Vector sub(Vector that) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment