I am trying to build a BlackVarianceSurface so that I can compare interpolation result with mine. What i did is
todaydate = Date(1, January, 2010)
maturity=[]
for i in range(24):
maturity.append(Date(1, January, 2010)+Period(i, Months))
k = range(10, 90, 10)
vol = abs(random.randn(24, 8)).transpose().tolist()
volsurf = BlackVarianceSurface(todaydate, TARGET(), maturity, k, vol, Actual365Fixed())
i am using numpy matrix. is it wrapped into quantlib Matrix? Is there anything I am doing wrong
Thanks a lot