Commit 2df5ff5
committed
[ad] Store (scaled) unit vectors inline
This introduces sparsity to the autodiff partials storage. If only one
partial is non-zero, we can avoid using the heap.1 parent ca73b45 commit 2df5ff5
6 files changed
Lines changed: 451 additions & 73 deletions
File tree
- common
- ad
- internal
- test
- benchmarking
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
18 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
19 | 20 | | |
20 | 21 | | |
21 | 22 | | |
| |||
0 commit comments