Skip to content
This repository was archived by the owner on Aug 22, 2025. It is now read-only.

Commit 1f8274f

Browse files
committed
Introduce nonlinearities into test funcs
1 parent f3719de commit 1f8274f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_jaches_products.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ Random.seed!(123)
66
N = 300
77
const A = rand(N, N)
88

9-
_f(y, x) = mul!(y, A, x)
10-
_f(x) = A * x
9+
_f(y, x) = mul!(y, A, x.^2)
10+
_f(x) = A * (x.^2)
1111

1212
x = rand(N)
1313
v = rand(N)
1414
a, b = rand(2)
1515
dy = similar(x)
16-
_g(x) = sum(abs2, x)
16+
_g(x) = sum(abs2, x.^2)
1717
function _h(x)
1818
FiniteDiff.finite_difference_gradient(_g, x)
1919
end

0 commit comments

Comments
 (0)