我有矩阵A和向量t,我需要找到向量x,所以A*x =t,所以只有2步,将maxtrix A和向量t转换成三角形,然后找到向量x(或者mb,使用这个库idk,只需一步就可以完成)。如何使用MTJ完成此操作?关于MTJ的文档和信息真的很少。
发布于 2020-09-10 00:22:57
我找到了怎么做:
double[][] matrix = new double[n][n];
double[] vector = new double[n];
Matrix A = new DenseMatrix(matrix);
Vector t = new DenseVector(vector);
Vector x = new DenseVector(n);
A.solve(t,x)然后我们将在x中得到答案
https://stackoverflow.com/questions/63814908
复制相似问题