有没有人能帮我找出使用EJML.jar求逆矩阵的代码
发布于 2014-03-28 13:37:13
此链接https://code.google.com/p/efficient-java-matrix-library/downloads/list包含此文件中的源代码: ejml-0.24-src.zip希望这能正常工作!
发布于 2014-09-19 23:43:50
您应该查看API文档。你可以在下面的link中找到所有的函数和类。下面的代码(在内部)将一个矩阵转换为它的逆值。
Random rand = new Random();
DenseMatrix64F a = RandomMatrices.createRandom(4,4, -1, 1, rand);
// where 4,4 is the matrix size and -1,1 the range where rand has to get
// the random values to populate it.
invert(a);
//The inverse gets stored in a我希望它能解决你的问题。
发布于 2015-06-26 15:11:28
现在,您可以使用以下代码:
double data[][] = new double[][]{
{ 90, 60, 90 },
{ 90, 90, 30 },
{ 60, 60, 60 }
};
SimpleMatrix m = new SimpleMatrix(data);
SimpleMatrix inverted = m.invert();
System.out.println(inverted);https://stackoverflow.com/questions/22704935
复制相似问题