You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
using Distributions
using Random
using Enzyme: Enzyme
using LinearAlgebra: I
d =MatrixTDist(
3.1,
randn(2, 3),
Array(I, (2, 2)),
Array(I, (3, 3)),
)
x =randn(2, 3)
f(x) =logpdf(d, x)
Enzyme.gradient(Enzyme.Forward, Enzyme.Const(f), x, Val(1))
using Random
using Enzyme: Enzyme
using LinearAlgebra: logdet
x =randn(2,2)
Enzyme.autodiff(Enzyme.Forward, Enzyme.Const(logdet), Enzyme.Duplicated(x, zero(x)))
using Random
using Enzyme: Enzyme
using LinearAlgebra: lu
x =randn(2,2)
f(x) =lu(x, check =false)
Enzyme.autodiff(Enzyme.Forward, Enzyme.Const(f), Enzyme.Duplicated(x, zero(x)))
MWE:
Output:
The text was updated successfully, but these errors were encountered: