40 Commits

Author SHA1 Message Date
Adrian Price-Whelan
5784d61048 implement truncnorm in jax.scipy.stats
fix some shape and type issues

import into namespace

imports into non-_src library

working logpdf test

cleanup

working tests for cdf and sf after fixing select

relax need for x to be in (a, b)

ensure behavior with invalid input matches scipy

remove enforcing valid parameters in tests

added truncnorm to docs

whoops alphabetical

fix linter error

fix circular import issue
2022-10-22 15:48:20 -04:00
Dan F-M
0788d5708a Implementation of jax.scipy.stats.gaussian_kde 2022-06-28 15:17:12 -04:00
carlosgmartin
57b89ba7cb Added scipy.stats.gennorm. 2022-06-14 13:38:24 -04:00
Alex Riley
372371cec6 Add jax.scipy.linalg.funm 2022-05-02 21:46:41 +01:00
Alex Riley
869596fc2c Add jax.scipy.linalg.rsf2csf 2022-04-06 21:06:23 +01:00
Yotaro Kubo
a7fd751acf Add istft to jax.scipy.signal. 2022-04-01 14:28:53 +09:00
Jake VanderPlas
c66f5dda60 DOC: add missing linalg functionality to docs 2022-03-15 09:55:59 -07:00
Peter Hawkins
3e5ecfe363 Add jax.distributed and jax.dlpack to the docs.
Reorder the doc modules into something closer to alphabetical order.

Add missing functions from jax.scipy.linalg and jax.scipy.signal to the docs.
2022-02-17 16:10:07 -05:00
Jonathan Terhorst
fec72e1852 add support for scipy.special.{expn,expi,exp1} 2021-08-24 16:36:10 -04:00
Julius Kunze
6d83027b69 Support scipy.fft.dct/dctn type=2 2021-08-17 18:56:44 +02:00
tlu7
d97b393694 Adds spherical harmonics.
Co-authored-by: Jake VanderPlas <jakevdp@google.com>
2021-07-02 10:42:29 -07:00
tlu7
095e6507b9 Support value computation of associated Legendre functions.
Co-authored-by: Jake VanderPlas <jakevdp@google.com>
2021-06-14 14:51:37 -07:00
tlu7
a02bf59233 Adds associated Legendre functions of the first kind.
Co-authored-by: Jake VanderPlas <jakevdp@google.com>
2021-06-02 11:37:37 -07:00
Jake VanderPlas
382506ba1a DOC: add bicgstab to doc page 2021-05-04 12:24:50 -07:00
Peter Hawkins
dbeb1a5273 Remove message field from OptimizeResults to allow for vmapping.
Add OptimizeResults to the documentation.
2021-02-16 20:43:53 -05:00
Jake VanderPlas
9e5c905707 DOC: fix minor rst formatting issues 2021-02-09 09:49:36 -08:00
Demetri
a3ad787402 Add betabinomial logpmf/pmf and tests
Squash all changes to single commit.  Add betabinom

Add tests for betabinom. nan where undefefined

squash
2021-02-05 15:13:09 -05:00
Demetri
48864a665b Add logdf and pdf for chisquare distribution
Add tests

Lint with flake8 fails.  Should pass now

newline at end of file for flake8

docs and changes

remove whitespace in changeloc
2021-02-03 15:09:21 -05:00
Jake VanderPlas
16568925ee Fix RST annotations 2021-01-14 16:26:45 -08:00
Jake Vanderplas
0268460761
Add jax.scipy.optimize to HTML docs
Fixes #5300
2021-01-03 06:24:42 -08:00
Stephan Hoyer
6cc5b28327 Cleanup/fixup jax.scipy.sparse.linalg.gmres and expose it publicly. 2020-12-03 09:23:00 -08:00
Peter Hawkins
c0b480bd51 Add missing jax.scipy.stats distributions to the docs.
Alphabetize import order.
2020-10-20 09:47:35 -04:00
Jake Vanderplas
d551cec6e8
Add Bessel functions in jax.numpy & jax.scipy.special (#4007) 2020-08-10 10:10:59 -07:00
Sri Hari Krishna Narayanan
7b57dc8c80
Issue1635 expm frechet (#2062)
* Implement Frechet derivatives for expm.

* Update expm to use the current custom gradients API.

Make some stylistic fixes.

Co-authored-by: Peter Hawkins <phawkins@google.com>
2020-06-28 12:11:12 -04:00
Du Phan
5d20c6fd5d
add scipy.special.zeta, scipy.special.polygamma (#3385) 2020-06-15 19:21:26 -07:00
Jake VanderPlas
4822581a75 Add missing functions to autodoc 2020-04-13 13:46:04 -07:00
Stephan Hoyer
1b93bb51a8
Implement scipy.sparse.linalg.cg (second try) (#2566)
* super minimal starter code

* Update optimizers.py

* implement flip with axis = None

* Create sparse.py

* fix some imports

* Update sparse.py

* add partial function & test

* Update lax_scipy_sparse_test.py

* Update lax_scipy_sparse_test.py

* add a test case for sparse pd matrix & add bigger dim

* address comments

* fix info return & create matrix with rng_factory

* Update lax_scipy_sparse_test.py

* Update lax_scipy_sparse_test.py

* Update sparse.py

* Update sparse.py

* Update sparse.py

* Update lax_scipy_sparse_test.py

* Update lax_scipy_sparse_test.py

* cast jax arrays into numpy array for scipy compatibility

* Update sparse.py

* Update sparse.py

* fix None issue, but algo is not working

* fix return of build_and_solve and output of while_loop

* fix condition func of while loop

* clearer variable names

* mismatch error

* Update lax_scipy_sparse_test.py

* Fixes to jax.experimental.sparse.cg

* Fix tests for gradients

* Add support for preconditioners to cg

* Move cg into scipy, update docs

* doc tweak

Co-authored-by: Tuan Nguyen <anhtuan277@gmail.com>
2020-04-03 13:37:11 -07:00
Peter Hawkins
3c9ae5e221
Add jax.scipy.stats.logistic to documentation. (#2149) 2020-02-03 12:44:57 -05:00
Srinivas Vasudevan
62966d9a9f
Add gammainc/gammaincc to JAX (#2064) 2020-01-29 11:25:21 -05:00
Peter Hawkins
cfef568dd6
Implement jax.scipy.linalg.block_diag. (#2113) 2020-01-29 11:24:40 -05:00
Sri Hari Krishna Narayanan
03b2ae6d59 Issue1635 expm (#1940)
* Issue1635 expm
Implemented expm using Pade approximation. The implmentation is
wrapped using custom_transforms. Frechet derivatives are provided
using defvjp.

* Issue1635 expm

Implemented expm using Pade approximation based on tf.linalg.expm.

* Revert "Revert "Merge remote-tracking branch 'origin/Issue1635' into Issue1635""

This reverts commit dd26c6eeeb60fa556f55abc8acb2f5969b64a2f5, reversing
changes made to b63c190c7671ebb9b911a52dcc203285c56a8051.

* Issue1635 expm testing

Add a test that compares numerical output of scipy.linalg.expm against jax.scipy.linalg.expm

* travis build Issue1635 branch

* Issue1635 expm testing

Use rand_small to get numerical agreeming

* Issue1635 expm testing
Use @jit to prevent recompilation

* Issue1635 expm testing

Use rand_small to get numerical agreement

* Revert "travis build Issue1635 branch"

This reverts commit 6139772555e3af79dc0307fce88838a480e42d38.

* Issue1635

Replace construct with  jax.numpy.select

* Issue1635

Restructure to support the docstring from SciPy

* Issue1635

Restructure to support the docstring from SciPy

* Issue1635

Remove the note that sparsity is not exploited because JAX does not support sparsity.

* Issue1635 expm

Support for the case where A is upper triangular. Instead of autodetection, the option is specified explicitly.

* Issue1635

Rename argument, make it positional. Update documentation

Co-authored-by: Jan <j.hueckelheim@imperial.ac.uk>
2020-01-21 21:11:51 -08:00
Srinivas Vasudevan
80b35dd4e5 Add betainc to JAX (#1998)
Adds betaln, a wrapper for the Beta function (scipy.special.betaln).
2020-01-15 16:13:11 -05:00
Stephan Hoyer
ee29705712
Add jax.scipy.ndimage to online docs (#1724) 2019-11-20 12:35:10 -08:00
Peter Hawkins
9c23a95e6a
Add i0e and i1e Bessel functions. (#1541) 2019-10-21 10:30:55 -04:00
Peter Hawkins
454cb4f6e9 Implement jax.scipy.linalg.lu_solve. 2019-09-05 09:59:47 -04:00
Peter Hawkins
b45d1ec1dd Fix test breakage at head.
Add new numpy/scipy functions to documentation.
2019-08-02 08:55:22 -04:00
Peter Hawkins
59be9b7a04 Minor doc fixes. 2019-07-02 15:00:47 -04:00
Peter Hawkins
8f461d265f Add some missing special functions to the documentation. 2019-05-15 09:54:24 -04:00
Peter Hawkins
637a802e71 Improve layout of jax.scipy documentation.
Fixes #577, since the set of supported distributions is now relatively easy to see.
2019-04-15 12:40:18 -04:00
Peter Hawkins
86d8915c3d Add Sphinx-generated reference documentation for JAX. 2019-01-16 09:13:31 -05:00