This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install WireGuard via whatever package manager you use. For me, I use apt. | |
$ sudo add-apt-repository ppa:wireguard/wireguard | |
$ sudo apt-get update | |
$ sudo apt-get install wireguard | |
MacOS | |
$ brew install wireguard-tools | |
Generate key your key pairs. The key pairs are just that, key pairs. They can be |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* levmarq.c | |
* | |
* This file contains an implementation of the Levenberg-Marquardt algorithm | |
* for solving least-squares problems, together with some supporting routines | |
* for Cholesky decomposition and inversion. No attempt has been made at | |
* optimization. In particular, memory use in the matrix routines could be | |
* cut in half with a little effort (and some loss of clarity). | |
* | |
* It is assumed that the compiler supports variable-length arrays as |