105106107108109110111112113114115
* @return D */ public Matrix getD() { Matrix x = new DenseMatrix(n, n); x.assign(0); x.viewDiagonal().assign(d); for (int i = 0; i < n; i++) { double v = e.getQuick(i); if (v > 0) { x.setQuick(i, i + 1, v); } else if (v < 0) {
114115116117118119120121122123124
* @return D */ public Matrix getD() { Matrix x = new DenseMatrix(n, n); x.assign(0); x.viewDiagonal().assign(d); for (int i = 0; i < n; i++) { final double v = e.getQuick(i); if (v > 0) { x.setQuick(i, i + 1, v); } else if (v < 0) {