public void doMatrix(){
double[][] arrayA = {{a11,a12,a13,a14},{a21,a22,a23,a24},{a31,a32,a33,a34},{a41,a42,a43,a44}};
double[][] arrayB = {{b1},{b2},{b3},{b4}};
RealMatrix matrixA = MatrixUtils.createRealMatrix(arrayA);
RealMatrix matrixB = MatrixUtils.createRealMatrix(arrayB);
RealMatrix matrixInvA = new LUDecomposition(matrixA).getSolver().getInverse();
RealMatrix matrixAmp = matrixInvA.multiply(matrixB);
tryit = arrayA[2][2];
}
tryit
当放置在我的 android 主活动的文本框中时,值继续返回 null。我访问数组错误吗?