Meekail Zain
6bdc83c680
Add new unstack function to numpy/array_api namespaces
2024-04-15 21:03:26 +00:00
Jake VanderPlas
9e01afe7af
Add jax.numpy.trapezoid
...
This function has been added to NumPy in version 2.0, as a replacement
for the already deprecated trapz function.
2024-04-01 13:05:20 -07:00
Jake VanderPlas
fbf7492a2c
Add jnp.isdtype function, following np.isdtype in NumPy 2.0
2024-01-17 12:14:55 -08:00
Jake VanderPlas
989618c5f7
[array api] add jax.numpy.concat
2024-01-12 13:12:09 -08:00
Jake VanderPlas
b08a010949
[array API] add jnp.linalg.diagonal
2024-01-11 12:52:15 -08:00
Jake VanderPlas
1a39d8fdb2
[array API] implement jnp.pow; alias for jnp.power
2024-01-10 14:59:46 -08:00
Jake VanderPlas
4e55086dfb
array api: add jnp.bitwise_* aliases
2024-01-10 14:22:20 -08:00
Jake VanderPlas
9890b23b0a
Add jnp.vecdot
2024-01-10 13:11:37 -08:00
Jake VanderPlas
d673b9bf5c
[array api] add jax.numpy.permute_dims function
2024-01-08 09:30:51 -08:00
Jake VanderPlas
5e957c6063
array api: add unique_* interfaces
2023-12-21 15:49:54 -08:00
Jake VanderPlas
e98bb7c3ab
jax.numpy: add trig aliases acos(h), asin(h), atan(h), atan2
2023-12-19 14:15:29 -08:00
Jake VanderPlas
832ac874bd
jnp.linalg: add matmul, tensordot, & svdvals
2023-12-19 11:36:09 -08:00
Jake VanderPlas
cab63114b4
Remove deprecated function jax.numpy.trapz
...
This was deprecated prior to the JAX 0.4.16 release, so we have now met the 3 month deprecation period specified by the [API Compatiblity Policy](https://jax.readthedocs.io/en/latest/api_compatibility.html ).
PiperOrigin-RevId: 592266215
2023-12-19 09:57:39 -08:00
Jake VanderPlas
e356d76913
Remove a number of deprecated APIs
...
All of these were deprecated prior to the JAX 0.4.16 release, on Sept 18 2023.
As of Monday Dec 18, we have met the 3 month deprecation period specified by the [API Compatiblity Policy](https://jax.readthedocs.io/en/latest/api_compatibility.html ).
PiperOrigin-RevId: 591933493
2023-12-18 10:08:47 -08:00
Jake VanderPlas
0c7b959dac
jnp.linalg: add matrix_norm, matrix_transpose, vector_norm, vector_transpose
...
These have been added upstream to numpy.linalg in NumPy 2.0, as part of the Array API standard.
2023-12-15 14:17:36 -08:00
Jake VanderPlas
fe2ad89209
array api: add jnp.linalg.cross & jnp.linalg.outer
2023-12-12 11:22:31 -08:00
Jake VanderPlas
d77cd9a0f4
Add jax.numpy.astype function
2023-11-30 15:50:22 -08:00
carlosgmartin
3cb504c583
Add jax.numpy.fill_diagonal.
2023-10-20 16:47:46 -04:00
Jake VanderPlas
a09fdf6e2f
Add jax.numpy.bitwise_count()
2023-10-03 13:48:16 -07:00
Jake VanderPlas
19a57e1a01
Deprecate jax.numpy.row_stack
2023-08-22 13:12:49 -07:00
Jake VanderPlas
8bba992f9a
deprecate jax.numpy.issubsctype
2023-08-17 12:27:52 -07:00
Jake VanderPlas
ad8e719b82
Add jnp.ufunc and jnp.frompyfunc
2023-08-10 14:58:18 -07:00
Jake VanderPlas
3fc70d3d8b
Typo: remove stray tick in jax.numpy docs
2023-06-08 01:15:21 -07:00
Jake VanderPlas
3bef6214bb
Deprecate jax.numpy functions alltrue, sometrue, product, cumproduct
2023-06-02 04:10:46 -07:00
Jake VanderPlas
333ff4abbc
Add jnp.matrix_transpose() and jax.Array.mT
...
This is an API proposed by the Python Array API Standard (https://data-apis.org/array-api/2022.12/ ). It's lightweight enough that there's hardly any downside to supporting it in JAX.
2023-05-25 09:02:05 -07:00
Jake VanderPlas
749dc1b95e
Remove deprecated function jnp.msort
2023-03-31 08:24:36 -07:00
Jake VanderPlas
b09b4ba51f
DOC: fix jax.numpy.Array discussion
2023-02-27 10:45:06 -08:00
Jake VanderPlas
7975192f92
Expose jax.typing & update docs
2023-02-13 15:53:08 -08:00
Jake VanderPlas
4fbaee5920
Implement jax.numpy.argpartition
2023-02-08 14:41:39 -08:00
Peter Hawkins
b730ed4645
Remove placeholder functions for unimplemented NumPy functions.
...
These don't seem necessary now JAX has fairly complete coverage of the NumPy API. Also removes the accidental export of _NOT_IMPLEMENTED in several modules.
2023-02-02 13:00:18 -05:00
Jake VanderPlas
217ca5db4b
Add implementation of jnp.partition
2023-01-30 13:50:25 -08:00
Jake VanderPlas
81e627d5bd
DOC: make API doc titles more uniform
2023-01-18 10:59:42 -08:00
Jake VanderPlas
8bde3a0a70
Point to ndarray.at from docstring of unimplemented jnp.put & jnp.place
2022-10-28 14:13:36 -07:00
Felix Hirwa Nshuti
820efab6fa
removed repeated nan_to_num in docs
2022-09-23 06:23:09 +00:00
Jake VanderPlas
2f4c485a54
Add dlpack support to device_array and jax.numpy
2022-07-15 17:31:11 -07:00
Jake VanderPlas
991ad72e24
DeviceArray: Improve support for copy, deepcopy, and pickle
2022-05-19 12:00:58 -07:00
Jiajie Li
128e51c638
Add polydiv to jax.numpy
...
Fix code style, fix tests
Add warning when use polydiv with trim_leading_zeros
Update warning for polydiv
Co-authored-by: Jake Vanderplas <jakevdp@gmail.com>
Enable type check in _CompileAndCheck
Fix cutoff
Fix cut-off in polydiv
Add trim_zeros_tol, remove redundant code in polydiv
Remove unused import
Fix trim_zero_tol usage in polydiv
2022-04-13 18:31:27 +00:00
Jake VanderPlas
fbfc3d8edf
Better error messages for jnp.fromiter and jnp.fromfile
2022-03-29 14:30:32 -07:00
Jake VanderPlas
093b7032a8
Implement jnp.from* array creation functions
2022-03-29 10:52:47 -07:00
Jake VanderPlas
09105b2d58
Update outdated jax.numpy module docs
2022-03-15 11:02:59 -07:00
Jake VanderPlas
ed2550999f
implement jnp.copy
2022-03-01 11:56:36 -08:00
Peter Hawkins
9ea55468ab
[JAX] Update users of jax.ops.index...
functions, which are deprecated.
...
* replace uses of `jax.ops.index[...]` with `jax.numpy.index_exp[...]`, which is a standard NumPy function that does the same thing.
* remove some redundant uses of `jax.ops.index[...]`, where the expression is passed directly to an indexed accessor function like `.at[...]`.
* update some remaining users of `jax.ops.index_update(x, jax.ops.index[idx], y)` to use the `x.at[idx].set(y)` APIs.
PiperOrigin-RevId: 406162068
2021-10-28 09:54:26 -07:00
Jake VanderPlas
c35b2f2485
DOC: move index update API docs to jnp.ndarray.at
...
- Add docstring to abstract property
- Add explicit HTML documentation of this property
- Mark index update functions as deprecated, linking to this documentation
2021-10-01 14:06:08 -07:00
Jake VanderPlas
3e0e47cde6
DOC: add missing jax.numpy functions
2021-09-16 13:29:08 -07:00
Dan Zheng
035b27ffb2
Add jnp.get_printoptions
and jnp.printoptions
.
...
`jnp.set_printoptions` already exists but other printing utilities do not.
`jnp.get_printoptions` forwards `numpy.get_printoptions`.
`jnp.printoptions` forwards `numpy.printoptions`.
2021-09-13 15:12:52 -07:00
avani17101
c4d300c4ca
Implement np.polyfit
2021-08-31 10:52:45 +05:30
elliotwaite
7392a57b75
DOC: many small fixes
2021-08-04 16:55:13 -07:00
Jake VanderPlas
9be4a3e83f
Fix typo/formatting issue in DeviceArray docs
2021-06-07 13:11:37 -07:00
Jake VanderPlas
80a310f8d8
DOC: add note about array views in numpy docs
2021-05-25 16:54:28 -07:00
Lukas Geiger
b4b02cb7c3
Add jnp.resize
2021-05-21 09:25:49 +01:00