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.
我正在使用 EJML SimpleMatrix,The method getData() is undefined for the type Matrix当我尝试使用以下代码返回 double[] 时出现错误:
The method getData() is undefined for the type Matrix
double[] test = result.getMatrix().getData();
任何帮助表示赞赏!
我需要导入 DMatrixRMaj 并将 .getMatrix() 转换为 DMatrixRMaj,然后使用 .getData()。请参阅下面的代码
double[] ret = ((DMatrixRMaj)result.getMatrix()).getData();