2017-08-28 13:42:51 +00:00
|
|
|
import java.util.Vector;
|
2018-01-31 12:34:54 +00:00
|
|
|
import java.lang.Integer;
|
|
|
|
import java.lang.Boolean;
|
2017-08-28 13:42:51 +00:00
|
|
|
|
2017-11-03 12:56:04 +00:00
|
|
|
class Matrix extends Vector<Vector<Integer>> {
|
2018-01-30 00:08:21 +00:00
|
|
|
mul(m) {
|
|
|
|
var ret = new Matrix();
|
|
|
|
var i = 0;
|
2018-02-07 13:38:45 +00:00
|
|
|
//while(i < size()) {
|
2018-01-30 00:08:21 +00:00
|
|
|
var v1 = this.elementAt(i);
|
2018-02-07 13:38:45 +00:00
|
|
|
//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++; }
|
2018-01-30 00:08:21 +00:00
|
|
|
return ret;
|
|
|
|
}
|
2017-11-03 12:56:04 +00:00
|
|
|
}
|