Skip to content

Commit

Permalink
Improve trsm stability
Browse files Browse the repository at this point in the history
  • Loading branch information
willtebbutt committed Dec 11, 2024
1 parent 7aa53b9 commit dd087fb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rrules/blas.jl
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,10 @@ function generate_derived_rrule!!_test_cases(rng_ctor, ::Val{:blas})
) do (side, ul, tA, dA, M, N, P)
t = tA == 'N'
R = side == 'L' ? M : N
As = blas_matrices(rng, P, R, R)
As = map(blas_matrices(rng, P, R, R)) do A
A[diagind(A)] .+= 1
return A
end
Bs = blas_matrices(rng, P, M, N)
return map_prod(As, Bs) do (A, B)
(false, :none, nothing, BLAS.trsm!, side, ul, tA, dA, randn(P), A, B)
Expand Down

0 comments on commit dd087fb

Please sign in to comment.