アットウィキロゴ

g用列式

package math;
 
 
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.math3.linear.*; 
 
 
class pro{
 
public static void main(String[] args) {
 
pro test=new pro();
}
 
pro(){
 
    double[][] m = { {1,2,3}, {2,5,3}};
RealMatrix mx = MatrixUtils.createRealMatrix(m);
 
 double[][] m2 = { {1,2}, {2,5}, {1, 7}};
RealMatrix n = new Array2DRowRealMatrix(m2);
 
RealMatrix p = mx.multiply(n);
 
 
System.out.println(p);
 
 
 
 
}
}
最終更新:2015年11月27日 02:17