Kim Juhyeong
89c844db9b
[torch.distributions] Implement positive-semidefinite constraint ( #71375 )
...
Summary:
While implementing https://github.com/pytorch/pytorch/issues/70275 , I thought that it will be useful if there is a `torch.distributions.constraints` to check the positive-semidefiniteness of matrix random variables.
This PR implements it with `torch.linalg.eigvalsh`, different from `torch.distributions.constraints.positive_definite` implemented with `torch.linalg.cholesky_ex`.
Currently, `torch.linalg.cholesky_ex` returns only the order of the leading minor that is not positive-definite in symmetric matrices and we can't check positive semi-definiteness by the mechanism.
cc neerajprad
Pull Request resolved: https://github.com/pytorch/pytorch/pull/71375
Reviewed By: H-Huang
Differential Revision: D33663990
Pulled By: neerajprad
fbshipit-source-id: 02cefbb595a1da5e54a239d4f17b33c619416518
(cherry picked from commit 43eaea5bd861714f234e9efc1a7fb571631298f4)
2022-01-20 17:33:08 +00:00
..
2021-12-09 02:58:57 -08:00
2021-10-19 08:35:02 -07:00
2021-11-03 18:21:49 -07:00
2021-10-29 12:42:01 -07:00
2022-01-20 04:51:10 +00:00
2021-09-02 12:36:54 -07:00
2021-11-04 09:59:30 -07:00
2021-11-02 10:22:18 -07:00
2021-10-29 12:42:01 -07:00
2022-01-20 01:23:44 +00:00
2022-01-20 17:33:08 +00:00
2021-08-12 11:45:01 -07:00
2022-01-12 14:03:17 -08:00
2022-01-12 06:34:42 -08:00
2021-11-18 20:56:06 -08:00
2022-01-20 03:16:20 +00:00
2022-01-12 09:46:46 -08:00
2022-01-18 23:51:51 +00:00
2021-08-12 11:45:01 -07:00
2022-01-10 12:42:23 -08:00
2022-01-18 23:51:51 +00:00
2022-01-10 11:11:55 -08:00
2022-01-14 23:31:11 -08:00
2021-08-12 11:45:01 -07:00
2020-06-25 18:36:44 -07:00
2021-05-10 22:56:37 -07:00
2021-08-06 08:38:33 -07:00
2021-07-10 14:29:05 -07:00
2021-08-12 11:45:01 -07:00
2022-01-10 13:37:24 -08:00
2021-08-12 11:45:01 -07:00
2021-11-22 15:28:12 -08:00
2021-10-29 12:42:01 -07:00
2022-01-11 15:03:49 -08:00
2021-12-19 11:56:57 -08:00
2021-11-05 11:01:16 -07:00
2021-11-03 18:21:49 -07:00
2021-10-19 08:36:27 -07:00
2021-10-21 13:17:46 -07:00
2022-01-06 16:53:50 -08:00
2021-12-08 12:18:08 -08:00
2021-10-21 17:36:25 -07:00
2022-01-12 15:44:40 -08:00
2021-12-14 07:35:26 -08:00
2022-01-20 15:49:53 +00:00
2021-10-26 07:49:33 -07:00
2021-10-19 16:54:05 -07:00
2021-10-21 08:48:37 -07:00
2021-11-29 19:02:23 -08:00
2022-01-05 23:40:06 -08:00
2021-10-29 12:17:21 -07:00
2021-10-19 10:55:20 -07:00
2021-12-02 09:19:12 -08:00
2021-10-29 12:42:01 -07:00
2022-01-18 22:12:41 +00:00
2021-12-14 06:59:38 -08:00
2021-10-18 10:29:50 -07:00
2021-11-08 17:56:43 -08:00
2021-11-08 14:37:09 -08:00
2021-12-23 17:07:57 -08:00
2021-10-25 07:51:10 -07:00
2021-10-25 07:51:10 -07:00
2022-01-19 23:21:24 +00:00
2021-11-10 23:08:32 -08:00
2021-10-25 07:51:10 -07:00
2021-10-25 07:51:10 -07:00
2021-10-25 07:51:10 -07:00
2022-01-06 18:26:28 -08:00
2022-01-20 00:03:57 +00:00
2021-10-29 12:42:01 -07:00
2021-10-29 12:42:01 -07:00
2022-01-05 20:33:37 -08:00
2021-10-29 12:42:01 -07:00
2021-12-01 19:19:37 -08:00
2021-10-26 10:20:01 -07:00
2021-11-15 11:56:45 -08:00
2021-10-26 10:20:01 -07:00
2021-11-05 11:01:16 -07:00
2022-01-13 15:59:59 -08:00
2022-01-06 16:53:50 -08:00
2022-01-12 13:35:11 -08:00
2021-12-30 09:09:55 -08:00
2021-10-21 13:13:53 -07:00
2021-10-21 08:22:26 -07:00
2022-01-05 20:32:12 -08:00
2021-10-29 12:42:01 -07:00
2022-01-14 07:59:10 -08:00
2022-01-07 13:36:33 -08:00
2022-01-13 19:09:05 -08:00
2021-10-19 10:50:54 -07:00
2021-10-29 12:42:01 -07:00
2021-12-23 15:52:34 -08:00
2022-01-14 11:59:49 -08:00
2021-11-22 12:41:06 -08:00
2021-10-26 07:49:33 -07:00
2022-01-18 22:18:11 +00:00
2021-10-29 12:42:01 -07:00
2021-10-19 16:54:05 -07:00
2022-01-20 02:11:34 +00:00
2021-10-29 12:17:21 -07:00
2022-01-05 06:36:41 -08:00
2021-11-05 12:13:47 -07:00
2021-10-29 12:42:01 -07:00
2021-11-24 09:51:29 -08:00
2021-11-05 11:01:16 -07:00
2021-11-01 09:22:34 -07:00
2021-11-05 11:01:16 -07:00
2021-11-19 17:18:20 -08:00
2022-01-17 13:47:49 -08:00
2022-01-19 18:58:08 +00:00
2021-11-01 09:22:34 -07:00
2021-10-29 12:17:21 -07:00
2021-11-18 01:04:12 -08:00
2021-11-05 15:36:29 -07:00
2021-10-29 12:42:01 -07:00
2021-12-16 09:27:45 -08:00
2021-10-26 07:46:18 -07:00
2022-01-12 06:44:00 -08:00
2021-10-29 12:42:01 -07:00
2022-01-14 10:13:33 -08:00
2021-10-20 09:41:13 -07:00
2021-10-20 09:41:13 -07:00
2021-11-01 09:22:34 -07:00
2021-10-20 09:41:13 -07:00
2021-12-06 07:32:48 -08:00
2021-12-02 16:47:00 -08:00
2021-12-14 04:33:05 -08:00
2021-12-21 02:46:48 -08:00
2021-10-26 10:20:01 -07:00
2021-11-05 11:01:16 -07:00