Skip to content

Commit

Permalink
add higher-dimensional no-op functions to test suite (#3)
Browse files Browse the repository at this point in the history
* add identity function to ARRAY_TO_ARRAY_FUNCS

* add first function to VECTOR_TO_NUMBER_FUNCS
  • Loading branch information
jrevels committed Mar 15, 2017
1 parent f5a861c commit 4ccf0ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DiffBase.jl
Expand Up @@ -27,15 +27,15 @@ const NUMBER_TO_ARRAY_FUNCS = (num2arr_1,)

const VECTOR_TO_NUMBER_FUNCS = (vec2num_1, vec2num_2, vec2num_3, vec2num_4, vec2num_5,
rosenbrock_1, rosenbrock_2, rosenbrock_3, rosenbrock_4,
ackley, self_weighted_logit)
ackley, self_weighted_logit, first)

const MATRIX_TO_NUMBER_FUNCS = (det, mat2num_1, mat2num_2, mat2num_3, mat2num_4, softmax)

const INPLACE_ARRAY_TO_ARRAY_FUNCS = (chebyquad!, brown_almost_linear!, trigonometric!,
mutation_test_1!, mutation_test_2!)

const ARRAY_TO_ARRAY_FUNCS = (-, chebyquad, brown_almost_linear, trigonometric, arr2arr_1,
arr2arr_2, mutation_test_1, mutation_test_2)
arr2arr_2, mutation_test_1, mutation_test_2, identity)

const MATRIX_TO_MATRIX_FUNCS = (inv,)

Expand Down

0 comments on commit 4ccf0ba

Please sign in to comment.