YWolfeee / lapjax

A JAX based package designed for efficient second order operators (e.g., laplacian) computation.
MIT License
70 stars 8 forks source link

add testing files #5

Closed dashu233 closed 1 year ago

dashu233 commented 1 year ago

Add check_utils.py in _lapsrc. It provide a function create_check_function to test the difference between LapJAX and jax.hessian/grad for any functions. The detailed usage is described in the corresponding function doc. Also provide a test file test/test_function.py. It can test if the behavior of all wrapped functions are the same as expectation.