线程 "main" java.lang.RuntimeException 中的 EMJL 异常:无法编译的代码 - 找不到符号

EMJL Exception in thread "main" java.lang.RuntimeException: Uncompilable code - cannot find symbol

我正在尝试让 EJML 工作,尤其是用随机数创建矩阵。创建常规的 SimpleMatrix 和 DMatrixRMaj 效果很好。但是我不断收到 java.lang.RuntimeException: Uncompilable code - cannot find symbol when using more advanced statements such as

DMatrixRMaj D2 = new RandomMatrices_DDRM.createSymmetric(20,-2,3,rand);

SimpleMatrix S2 = new SimpleMatrix.random64(20,20,-2,3,rand);

下面是完整的代码和错误信息。

谢谢!

/本尼

package com.benny.evosim;

import java.util.*;

import org.ejml.simple.SimpleMatrix;

import org.ejml.data.DMatrixRMaj;

import org.ejml.dense.row.RandomMatrices_DDRM;

public class EvoSim {

public static void main(String[] args) {

    EvoSim evoSimInstance = new EvoSim();
    evoSimInstance.start();
}

public void start() {
    
    Random rand = new Random();
    SimpleMatrix A = new SimpleMatrix(3,3);
    DMatrixRMaj​ D  = new DMatrixRMaj(3,3) ; 
    
    DMatrixRMaj D2 = new RandomMatrices_DDRM.createSymmetric(20,-2,3,rand);
    SimpleMatrix S2 = new SimpleMatrix.random64(20,20,-2,3,rand);
    
    A.print();
    }
}

错误信息

--------------------------< com.benny:evosim >--------------------------
Building evosim 1.0-SNAPSHOT
--------------------------------[ jar ]---------------------------------

--- exec-maven-plugin:3.0.0:exec (default-cli) @ evosim ---
Exception in thread "main" java.lang.RuntimeException: Uncompilable code - cannot find symbol
  symbol:   variable RandomMatrices_DDRM
  location: class com.benny.evosim.EvoSim
    at com.benny.evosim.EvoSim.start(EvoSim.java:1)
    at com.benny.evosim.EvoSim.main(EvoSim.java:26)
Command execution failed.
org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
    at org.apache.commons.exec.DefaultExecutor.executeInternal (DefaultExecutor.java:404)
    at org.apache.commons.exec.DefaultExecutor.execute (DefaultExecutor.java:166)

创建 RandomMatrices_DDRM before a method. In this case the method is actually symmetric

的实例
DMatrixRMaj d2 = new RandomMatrices_DDRM().symmetric(20,-2,3,rand);

SimpleMatrix

也类似