Commit cafa9e1
Fix append! for matrix bounds in batch models
Split append! into AbstractVector and AbstractMatrix methods. Matrix
bounds (e.g., lvar = zeros(10,4) for a 4-instance batch) are now
cat'd directly along dim 1 instead of being vec'd to a flat vector
and then incorrectly expanded, which produced (40,4) instead of (10,4).
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f13f998 commit cafa9e1
1 file changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
686 | 686 | | |
687 | 687 | | |
688 | 688 | | |
689 | | - | |
| 689 | + | |
690 | 690 | | |
691 | 691 | | |
692 | | - | |
693 | | - | |
| 692 | + | |
| 693 | + | |
| 694 | + | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
694 | 698 | | |
695 | 699 | | |
696 | 700 | | |
| |||
0 commit comments