mlx/python/tests
Gabrijel Boduljak 6b0d30bb85
linalg.norm (#187)
* implemented vector_norm in cpp

added linalg to mlx

* implemented vector_norm python binding

* renamed vector_norm to norm, implemented norm without provided ord

* completed the implementation of the norm

* added tests

* removed unused import in linalg.cpp

* updated python bindings

* added some tests for python bindings

* handling inf, -inf as numpy does, more extensive tests of compatibility with numpy

* added better docs and examples

* refactored mlx.linalg.norm bindings

* reused existing util for implementation of linalg.norm

* more tests

* fixed a bug with no ord and axis provided

* removed unused imports

* some style and API consistency updates to linalg norm

* remove unused includes

* fix python tests

* fixed a bug with frobenius norm of a complex-valued matrix

* complex for vector too

---------

Co-authored-by: Awni Hannun <awni@apple.com>
2023-12-26 19:42:04 -08:00
..
mlx_tests.py added tri / tril / triu (#170) 2023-12-15 17:30:34 -08:00
test_array.py expose itemsize and nbytes as for numpy arrays (#284) 2023-12-25 10:34:28 -08:00
test_autograd.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_bf16.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_blas.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_conv.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_device.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_eval.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_fft.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_linalg.py linalg.norm (#187) 2023-12-26 19:42:04 -08:00
test_load.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_nn.py implement-batch-norm-layer (#217) 2023-12-25 07:32:53 -08:00
test_ops.py Implements divide for integer types and adds floor_divide op (#228) 2023-12-19 20:12:19 -08:00
test_optimizers.py Pr template (#99) 2023-12-09 09:36:56 -08:00
test_quantized.py Fix tolerance in de-/quantization test (#295) 2023-12-26 19:21:05 -08:00
test_random.py random.uniform must respect dtype, even if lower precision than "low" (#280) 2023-12-24 07:04:43 -08:00
test_reduce.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_tree.py Add isort pre-commit and run (#68) 2023-12-08 11:31:47 -08:00
test_vmap.py Add move and swap axis, and vmap for slice, concat, and gather (#158) 2023-12-14 12:59:12 -08:00