Skip to content
Snippets Groups Projects
Commit 37ebafdb authored by loick.pipolo's avatar loick.pipolo
Browse files

fonction dot transpose

parent 94bd5285
Branches
Tags
No related merge requests found
package ch.hepia.numeric; package ch.hepia.numeric;
public class Transposed{ public class Transposed{
private Transposed(){}; private Transposed(){
};
public double dot(Vector That){ public double dot(Vector That){
throw new UnsupportedOperationException("This feature isn't implemented yet"); double res = 0.0;
Integer count = 0;
for (double coo : This) {
res = res + (coo * That.get(count));
count = count + 1;
}
return res;
//throw new UnsupportedOperationException("This feature isn't implemented yet");
}; };
public Vector sub(Vector That){ public Vector sub(Vector That){
throw new UnsupportedOperationException("This feature isn't implemented yet"); throw new UnsupportedOperationException("This feature isn't implemented yet");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment