mlx/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
..
allocator_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
arg_reduce_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
array_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
autograd_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
blas_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
CMakeLists.txt linalg.norm (#187) 2023-12-26 19:42:04 -08:00
creations_tests.cpp support arange for bfloat16 (#245) 2023-12-21 14:33:43 -08:00
device_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
eval_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
fft_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
graph_optimize_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
linalg_tests.cpp linalg.norm (#187) 2023-12-26 19:42:04 -08:00
load_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
metal_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
ops_tests.cpp Adds C++ and nn quantization utilities (#230) 2023-12-20 14:17:38 -08:00
random_tests.cpp random.uniform must respect dtype, even if lower precision than "low" (#280) 2023-12-24 07:04:43 -08:00
scheduler_tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
tests.cpp copyright + ack 2023-11-30 11:12:53 -08:00
utils_tests.cpp Added mx.stack c++ frontend impl (#123) 2023-12-14 13:21:19 -08:00
vmap_tests.cpp Add move and swap axis, and vmap for slice, concat, and gather (#158) 2023-12-14 12:59:12 -08:00