2d5c863008
Changes to be committed: Aenderungen am Unify: Fehler behoben und Vereinfachung modified: src/de/dhbwstuttgart/core/JavaTXCompiler.java new file: src/de/dhbwstuttgart/typeinference/unify/Match.java modified: src/de/dhbwstuttgart/typeinference/unify/TypeUnifyTask.java new file: src/de/dhbwstuttgart/typeinference/unify/interfaces/IMatch.java modified: src/de/dhbwstuttgart/typeinference/unify/model/FiniteClosure.java modified: src/de/dhbwstuttgart/typeinference/unify/model/Node.java modified: src/de/dhbwstuttgart/typeinference/unify/model/TypeParams.java modified: src/de/dhbwstuttgart/typeinference/unify/model/Unifier.java modified: test/javFiles/Matrix.jav
27 lines
768 B
Java
27 lines
768 B
Java
import java.util.Vector;
|
|
import java.lang.Integer;
|
|
import java.lang.Boolean;
|
|
|
|
class Matrix extends Vector<Vector<Integer>> {
|
|
mul(m) {
|
|
var ret = new Matrix();
|
|
var i = 0;
|
|
//while(i < size()) {
|
|
var v1 = this.elementAt(i);
|
|
//var v2 = new Vector<Integer>();
|
|
//var j = 0;
|
|
//while(j < v1.size()) {
|
|
//var erg = 0;
|
|
//var k = 0;
|
|
//while(k < v1.size()) {
|
|
//erg = erg + v1.elementAt(k)
|
|
// * m.elementAt(k).elementAt(j);
|
|
//k++; }
|
|
//v2.addElement(new Integer(erg));
|
|
//j++; }
|
|
//ret.addElement(v2);
|
|
//i++; }
|
|
return ret;
|
|
}
|
|
}
|