I hereby claim:
- I am maxwellpirtle on github.
- I am maxwellpirtle (https://keybase.io/maxwellpirtle) on keybase.
- I have a public key ASA2JxKDCGWuknFRqavVw9Xee8ZnqYUxRGaStiiSTOMnFwo
To claim this, I am signing this object:
#pragma once | |
#include <tuple> | |
#include <type_traits> | |
#include <typeindex> | |
#include <typeinfo> | |
template <typename InterfaceType, typename FunctionType> | |
struct double_dispatch_member_function_table; |
def range_inclusive(start, stop, step=1): | |
"""A convenience function over Python's range which includes | |
the last element specified in the range | |
Python's range function excludes the `stop` element. In | |
general this is ok. But it's confusing enough with all of | |
the indices when iterating subsets that it's more intuitive | |
to have a range function that includes the final index | |
""" | |
return range(start, stop - 1, step) if step < 0 else range(start, stop + 1, step) |
import sys | |
import math | |
try: | |
import numpy as np | |
print(f'Using numpy version {np.__version__}') | |
except: | |
print(f'Numpy is needed for this demo', file=sys.stderr) | |
exit(1) |
I hereby claim:
To claim this, I am signing this object: