ProxGradPytorch
PyTorch implementation of Proximal Gradient Algorithms a la Parikh and Boyd (2014). Useful for Auto-Sizing (Murray and Chiang 2015, Murray et al. 2019).
- 41
- Python
- MIT
- 6 y ago
PyTorch implementation of Proximal Gradient Algorithms a la Parikh and Boyd (2014). Useful for Auto-Sizing (Murray and Chiang 2015, Murray et al. 2019).
This example demonstrates a low-level native sort with duplicate elimination. It builds array (a) from values in (b), then reconstructs (b) with unique sorted values. Runtime is n+m, where m is the maximum element. Implemented in Python, MATLAB, and JavaScript.