Skip to content

Commit

Permalink
Add test for Stacked with vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
mhauru committed Jan 14, 2025
1 parent 73f3459 commit 4946dbf
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/ad/stacked.jl
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,15 @@
test_ad(y) do y
sum(transform(binv, y))
end

bvec = Stacked([b1, b2], [1:4, 5:5])
bvec_inv = inverse(bvec)

test_ad(y) do x
sum(transform(bvec, binv(x)))
end

test_ad(y) do y
sum(transform(bvec_inv, y))
end
end

0 comments on commit 4946dbf

Please sign in to comment.