如何使用庫中的函數轉置數組?我已經從這裏下載並使用庫Colt: http://acs.lbl.gov/software/colt/api/index.html。我想:如何使用庫中的函數轉置數組?
DoubleMatrix1D array;
array = new DenseDoubleMatrix1D(4);
for (int i=0; i<4; i++)
array.set(i,i);
DoubleMatrix1D transpose = array.viewDice();
,但它不工作,因爲我得到的錯誤:
The method viewDice() is undefined for the type DoubleMatrix1D
任何想法?