[英]Why do I get that SingularValueDecomposition cannot be resolved to a type?
我將Jama添加到buildpath中,導入了正確的類,但是eclipse給了我這個錯誤。 有人知道我在做什么錯嗎?
您需要在之后聲明一個標識符
SingularValueDecomposition
喜歡
SingularValueDecomposition myValueDecomp = An.svd();
然后將代碼粘貼。 我剛剛下載了Jama,並使用NetBeans和Eclipse Kepler中的getSingularVectors方法創建了一個簡單的代碼片段,它對我有用。 我的代碼:
private ArrayList<Vector<Double>> getSingularVectors(Matrix an, int i){
ArrayList<Vector<Double>> list = new ArrayList<Vector<Double>>(i);
SingularValueDecomposition svd = an.svd();
return list;
}
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.