Changeset 134 in public for benchmark/src
- Timestamp:
- 1/3/2014 6:13:39 PM (4 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
benchmark/src/main/java/com/numericalmethod/benchmark/implementation/JlapackImplementation.java
r133 r134 152 152 addExecutable(EigenDecomposition.class, new Executable<LapackMatrix>() { 153 153 public void execute(LapackMatrix[] matrices) { 154 LapackMatrix Q = matrices[0]. copy(); // make a copy154 LapackMatrix Q = matrices[0].zero(); // initialized to zero 155 155 int size = Q.nRows(); 156 156 double[] D = new double[size]; … … 185 185 throw new IllegalArgumentException("Eigen decomposition is unsuccessful!"); 186 186 } 187 if (info.val > 0) { // see the LAPACK documentation 188 throw new IllegalArgumentException( 189 String.format("Eigen decomposition failed on submatrix (%d, %d) -> (%d, %d)", 190 info.val / (size + 1), info.val / (size + 1), 191 info.val % (size + 1), info.val % (size + 1))); 187 if (info.val > 0) { 188 throw new IllegalArgumentException("Eigen decomposition failed!"); 192 189 } 193 190 }
Note: See TracChangeset
for help on using the changeset viewer.
