Skip to content

Releases: ASEM000/finitediffX

v0.1

27 Jul 06:37
Compare
Choose a tag to compare

Full Changelog: v0.0.5...v0.1

v0.0.5

08 Jun 12:45
Compare
Choose a tag to compare

What's Changed

  • Enable pytree step_size, offsets input by @ASEM000 in #5
  • fgrad can handle arrays
import numpy as np
import jax
import finitediffx as fdx 

def func(x):
    return np.sum(np.sin(x))

x = np.ones([5,1])

print(fdx.fgrad(func)(x))
# [[0.54003906]
#  [0.54003906]
#  [0.54003906]
#  [0.54003906]
#  [0.54003906]]


try:
    jax.grad(func)(x)
except jax.errors.TracerArrayConversionError:
    print("Fail: `jax.grad` cannot be used with numpy arrays")
    def func(x):
        return jnp.sum(jnp.sin(x))
    print(jax.grad(func)(x))
# Fail: `jax.grad` cannot be used with numpy arrays
# [[0.54030234]
#  [0.54030234]
#  [0.54030234]
#  [0.54030234]
#  [0.54030234]]

Full Changelog: v0.0.4...v0.0.5

v0.0.4

07 Jun 05:10
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.0.3...v0.0.4

v0.0.3

05 Jun 12:43
87b0ec5
Compare
Choose a tag to compare

What's Changed

  • Add define_fdjvp and fgrad improvements by @ASEM000 in #2

Full Changelog: v0.0.2...v0.0.3

v0.0.2

20 Mar 08:55
Compare
Choose a tag to compare

What's Changed

  • Added Forward, Backward and Central Difference Option. by @jejjohnson in #1

New Contributors

Full Changelog: v0.0.1...v0.0.2

v0.0.1

01 Mar 05:43
Compare
Choose a tag to compare
v0.0.1 Pre-release
Pre-release

initial release