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

fonction dot transpose+constructeur

parent d637b363
Branches
Tags
No related merge requests found
package ch.hepia.numeric;
public class Transposed{
private Transposed(){
private List<Double> vecT;
private Transposed(Vector That){
vecT = new ArrayList<>();
for (double elem : That){vecT.add(elem);}
};
public double dot(Vector That){
double res = 0.0;
Integer count = 0;
for (double coo : This) {
res = res + (coo * That.get(count));
for (double coo : This.vecT) {
res = res + (coo * That.values.get(count));
count = count + 1;
}
return res;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment