Skip to content

Commit f00928b

Browse files
committed
add a test for nested matrix multiplication
1 parent fdf691e commit f00928b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/DiffTests.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,12 @@ end
113113

114114
self_weighted_logit(x) = inv(1.0 + exp(-dot(x, x)))
115115

116+
nested_array_mul(x) = sum(sum(x[1] * [[x[2], x[3]]]))
117+
116118
const VECTOR_TO_NUMBER_FUNCS = (vec2num_1, vec2num_2, vec2num_3, vec2num_4, vec2num_5,
117119
vec2num_6, vec2num_7, rosenbrock_1, rosenbrock_2,
118120
rosenbrock_3, rosenbrock_4, ackley, self_weighted_logit,
119-
first)
121+
nested_array_mul, first)
120122

121123
########################
122124
# f(x::Matrix)::Number #

0 commit comments

Comments
 (0)