Commit dd6cb8c
committed
Improve eig tests in preparation for new eig backends
- Verify validity of eigenvectors using the eigen decomposition identity
for improved robustness, as eigenvectors are not unique.
- Increases test reliability across backends (cuSOLVER, MAGMA, CPU).
- Tolerances derived from numerical comparisons between cuSOLVER and NumPy. See discussion: https://dev-discuss.pytorch.org/t/cusolver-dnxgeev-faster-cuda-eigenvalue-calculations/3248/61 parent 8cee9e6 commit dd6cb8c
1 file changed
+31
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2139 | 2139 | | |
2140 | 2140 | | |
2141 | 2141 | | |
| 2142 | + | |
| 2143 | + | |
| 2144 | + | |
| 2145 | + | |
| 2146 | + | |
| 2147 | + | |
| 2148 | + | |
| 2149 | + | |
| 2150 | + | |
| 2151 | + | |
| 2152 | + | |
| 2153 | + | |
| 2154 | + | |
| 2155 | + | |
| 2156 | + | |
| 2157 | + | |
| 2158 | + | |
| 2159 | + | |
| 2160 | + | |
| 2161 | + | |
| 2162 | + | |
| 2163 | + | |
| 2164 | + | |
| 2165 | + | |
| 2166 | + | |
| 2167 | + | |
| 2168 | + | |
| 2169 | + | |
2142 | 2170 | | |
2143 | 2171 | | |
2144 | 2172 | | |
| |||
2155 | 2183 | | |
2156 | 2184 | | |
2157 | 2185 | | |
2158 | | - | |
| 2186 | + | |
2159 | 2187 | | |
2160 | 2188 | | |
2161 | 2189 | | |
| |||
2345 | 2373 | | |
2346 | 2374 | | |
2347 | 2375 | | |
| 2376 | + | |
| 2377 | + | |
2348 | 2378 | | |
2349 | 2379 | | |
2350 | 2380 | | |
| |||
0 commit comments