Skip to content
Snippets Groups Projects

Tanguy

Open tanguy.dietrich requested to merge david.carballo/poo2019numeric:Tanguy into master
3 files
+ 52
21
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -10,8 +10,15 @@ public class Transposed{
Transposed(Vector v) {
this.v = v;
}
public double dot(Vector vect){
throw new UnsupportedOperationException("This feature isn't implemented yet");
public double dot(Vector vect)
{
double resultat=0;
for (int index=0;index<=vect.len()-1;index++)
{
resultat+=v.get(index)*vect.get(index);
}
return resultat;
}
public Transposed sub(Transposed t){
Loading