-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Parallel2017 #1
base: master
Are you sure you want to change the base?
Parallel2017 #1
Conversation
From a glance, this code is not compatible with few design principles we tried to follow with the SC version. To name a few:
|
bs_erf_naive.py
Outdated
T = t [i] | ||
P = float(price[i]) | ||
S = strike[i] | ||
T = t[i] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spaces here were on purpose to make it look pretty in WinMerge reports comparing implementations
if repeat < 1: | ||
repeat = 1 | ||
############################################## | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's changed here? EOLs?
bs_erf_numpy_apply_ipyparallel.py
Outdated
|
||
|
||
def bs(nopt, rate, vol): | ||
mr = -rate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you need new implementation here?
bs_erf_numpy.py
Outdated
sig_sig_two = vol * vol * 2 | ||
def black_scholes(nopt, price, strike, t, rate, vol): | ||
mr = -rate | ||
sig_sig_two = vol * vol * 2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all spaces were on purpose for the diff
Code review for @fschlimb