Commit f4c49e9
committed
Fix matrix row and column mixup
m_matrix elements point to the rows, so the first index should be
related to the height, and the second index to the width.
It does end up working without this fix, because the matrix width is
constrained to be 1 in both vectorMagnitudeSquared() and dot(), and the
matrix elements are stored consecutively, in one array, so the memory
accesses are exactly the same in both cases. So, this is mostly a
cosmetic fix (ATM), but can help with understanding the code.1 parent af0a00d commit f4c49e9
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
234 | | - | |
| 234 | + | |
235 | 235 | | |
236 | 236 | | |
237 | 237 | | |
| |||
244 | 244 | | |
245 | 245 | | |
246 | 246 | | |
247 | | - | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| |||
0 commit comments