Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有矩阵 A 和向量 t。而且我需要找到向量x,这样A*x = t所以只有2个步骤,将maxtrix A和向量t转换成三角形,然后找到向量x(或者mb可以用这个库一步完成, 同上)。如何使用 MTJ 做到这一点?关于 MTJ 的文档或信息确实很少。
我找到了怎么做:
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 中得到答案