2019-12-23 15:34:07 +00:00
|
|
|
package de.test;
|
|
|
|
|
|
|
|
import java.util.Vector;
|
|
|
|
import java.lang.Integer;
|
|
|
|
import java.lang.Boolean;
|
|
|
|
|
|
|
|
import de.test.mathStruc;
|
|
|
|
import de.test.vectorAdd;
|
|
|
|
|
|
|
|
|
2019-12-29 18:42:40 +00:00
|
|
|
public class mathStrucVector {
|
2019-12-23 15:34:07 +00:00
|
|
|
|
2019-12-29 18:42:40 +00:00
|
|
|
public main() {
|
2019-12-23 15:34:07 +00:00
|
|
|
Vector<Integer> v1 = new Vector<Integer>();
|
|
|
|
v1.addElement(2);
|
|
|
|
v1.addElement(2);
|
|
|
|
Vector<Integer> v2 = new Vector<Integer>();
|
|
|
|
v2.addElement(3);
|
|
|
|
v2.addElement(3);
|
|
|
|
|
|
|
|
vectorAdd va = new vectorAdd();
|
|
|
|
|
|
|
|
var ms;
|
|
|
|
ms = new mathStruc<>(v1);
|
|
|
|
var ms2;
|
|
|
|
ms2 = new mathStruc<>(v2);
|
|
|
|
var ms3;
|
2019-12-29 18:42:40 +00:00
|
|
|
|
2019-12-23 15:34:07 +00:00
|
|
|
ms3 = ms.innerOp.apply(va.add).apply(ms2);
|
|
|
|
return ms3;
|
2019-12-29 18:42:40 +00:00
|
|
|
|
2019-12-23 15:34:07 +00:00
|
|
|
}
|
|
|
|
}
|