forked from JavaTX/JavaCompilerCore
22 lines
289 B
Plaintext
22 lines
289 B
Plaintext
|
class Matrix extends Vector<Vector<Integer>> {
|
||
|
|
||
|
mul(m){
|
||
|
Vector<Vector<Integer>> ret;
|
||
|
ret = new Matrix();
|
||
|
i;
|
||
|
i = 0;
|
||
|
while(i <size()) {
|
||
|
v1;
|
||
|
v2;
|
||
|
v1 = this.elementAt(i);
|
||
|
v2 = new Vector<Integer>();
|
||
|
j;
|
||
|
j = 0;
|
||
|
ret.addElement(v2);
|
||
|
i++;
|
||
|
}
|
||
|
return ret;
|
||
|
}
|
||
|
|
||
|
}
|