pytorch/torch/testing
Ivan Yashchuk 8bb7203049 Add torch.linalg.ldl_factor_ex and torch.linalg.ldl_solve
This PR adds a function for computing the LDL decomposition and a function that can solve systems of linear equations using this decomposition. The result of `torch.linalg.ldl_factor_ex` is in a compact form and it's required to use it only through `torch.linalg.ldl_solve`. In the future, we could provide `ldl_unpack` function that transforms the compact representation into explicit matrices.

Fixes https://github.com/pytorch/pytorch/issues/54847.

cc @jianyuh @nikitaved @pearu @mruberry @walterddr @IvanYashchuk @xwang233 @Lezcano
Pull Request resolved: https://github.com/pytorch/pytorch/pull/69828
Approved by: https://github.com/Lezcano, https://github.com/mruberry, https://github.com/albanD
2022-04-28 19:23:37 +00:00
..
_internal Add torch.linalg.ldl_factor_ex and torch.linalg.ldl_solve 2022-04-28 19:23:37 +00:00
__init__.py cleanup torch.testing namespace (#72708) 2022-02-25 06:30:31 +00:00
_comparison.py remove special casing for sparse CSR shape comparison 2022-04-11 16:04:34 +00:00
_creation.py [complex32] make_tensor 2022-03-30 01:05:34 +00:00
_deprecated.py promote torch.testing to stable (#73348) 2022-02-25 06:30:31 +00:00
_legacy.py Check if the iterator is valid before dereferencing it (#72405) 2022-02-23 18:33:46 +00:00