We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e9be80 commit cf734b4Copy full SHA for cf734b4
src/example.cpp
@@ -3,13 +3,15 @@
3
4
#include <tinyopt/tinyopt.h>
5
6
+using namespace tinyopt::nlls;
7
+
8
int main(int, char **argv) {
9
10
double x = 1;
11
auto loss = [](const auto &x) { return x * x - 2.0; };
12
- tinyopt::Options options;
- const auto &out = tinyopt::Optimize(x, loss, options);
13
+ Options options;
14
+ const auto &out = Optimize(x, loss, options);
15
16
std::cout << "What's √2 already?\n" << x << "\n";
17
return 0;
0 commit comments