Skip to content
Snippets Groups Projects
Whitney Armstrong's avatar
Whitney Armstrong authored
- FuncVarPattern.h : Name sucks but it can always be changed.
- kinematics.cxx   : Calculates DIS kinematics as an example

Ideas:
- Add a wrapper on the result tuple so that `std::get<some_var>(res)` -> `res.get<some_var>()`.
329ec9ff
History

test

g++ -o test -std=c++17  func_pattern.cxx -I.

Running the test:

$ ./test
2
77
79
12166
158
8.21963e-05
12166
1
6.75623e-09

These should be the same as the first 3 variables above.
2
77
79

XBD
2
158
12166

Looking at assembly:

g++ -S -o test.asm -std=c++17  func_pattern.cxx -I. -O3