JavaTXCompilerInJavaTX/resources/bytecode/javFiles/Scalar.jav
2023-04-11 15:35:15 +02:00

18 lines
358 B
Java

//import java.util.Vector;
import java.lang.Integer;
import java.lang.Float;
//import java.lang.Byte;
//import java.lang.Boolean;
public class Scalar extends Vector<Integer> {
mul(v) {
var ret = 0;
var i = 0;
while(i < size()) {
ret = ret + this.elementAt(i) * v.elementAt(i);
}
return ret;
}
}