Pass symmetric matrix to `logdet` gradtest

This commit is contained in:
Ivan Yashchuk 2019-02-08 12:22:08 +02:00
parent e00ac88016
commit 6471790819
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ gradtest(f, dims...) = gradtest(f, rand.(Float64, dims)...)
@test gradtest(x -> x', rand(5))
@test gradtest(det, (4, 4))
@test gradtest(logdet, (4, 4))
@test gradtest(logdet, map((x) -> x*x', (rand(4, 4),))[1])
@test gradtest((x) -> logabsdet(x)[1], (4, 4))
@testset "indexing & slicing" begin