This file contains 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
#!/usr/bin/env python3 | |
import numpy as np | |
import scipy.special as sc | |
import matplotlib.pyplot as plt | |
import matplotlib.widgets as wi | |
# Resolution | |
COUNT = 100 |
This file contains 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
/* Make C++11 (and later) scoped enums (enum classes) behave like bitfields, i.e. allow bitwise OR/AND (&/|) | |
* | |
* Based on and expanded from: | |
* https://softwareengineering.stackexchange.com/questions/194412/using-scoped-enums-for-bit-flags-in-c/204566#204566 | |
* | |
* For the legally inclined: | |
* LICENSE: Software Engineering SE answers are CC BY-SA 2.5, so my modifications are CC BY-SA 2.5 as well | |
*/ | |
#include <type_traits> |