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.
我想计算方程的 Jama 解Ax = x(其中A是矩阵并且x是向量)。如果是这样,Ax = b它看起来就像这样:
Ax = x
A
x
Ax = b
Matrix x = A.solve(b);
我想到的唯一想法是这样的(写在scala):
scala
var x = new Matrix(n, 1) // n is the number of rows x = A.solve(x)
但它返回零,因为x用零初始化。你有什么想法?