Comments for HPC-QuantLib https://hpcquantlib.wordpress.com Sun, 04 May 2025 07:33:01 +0000 hourly 1 http://wordpress.com/ Comment on Making QuantLib Compatible with Python 3.13’s Free-Threading by lballabio https://hpcquantlib.wordpress.com/2025/03/03/making-quantlib-compatible-with-python-3-13s-free-threading/#comment-2797 Wed, 05 Mar 2025 19:20:07 +0000 http://hpcquantlib.wordpress.com/?p=5041#comment-2797 In reply to hpcquantlib.

I see, thanks. It might be worth to open an issue with them and see if someone picks it up. At least, they will probably tell you if they’re already considering it.

]]>
Comment on Making QuantLib Compatible with Python 3.13’s Free-Threading by hpcquantlib https://hpcquantlib.wordpress.com/2025/03/03/making-quantlib-compatible-with-python-3-13s-free-threading/#comment-2796 Wed, 05 Mar 2025 19:04:57 +0000 http://hpcquantlib.wordpress.com/?p=5041#comment-2796 In reply to lballabio.

I’m really not an very familiar with SWIG details and my implementation is a simple global mutex lock around every method, which uses the swig_type_info. Pretty sure, that someone more familiar with the internals will find a much better solution and don’t know what else I’ve missed.

]]>
Comment on Making QuantLib Compatible with Python 3.13’s Free-Threading by lballabio https://hpcquantlib.wordpress.com/2025/03/03/making-quantlib-compatible-with-python-3-13s-free-threading/#comment-2795 Mon, 03 Mar 2025 19:24:42 +0000 http://hpcquantlib.wordpress.com/?p=5041#comment-2795 Impressive as usual, Klaus. Did you consider contributing to SWIG your changes?

]]>
Comment on Andreasen-Huge Volatility Interpolation by hpcquantlib https://hpcquantlib.wordpress.com/2018/01/05/andreasen-huge-volatility-interpolation/#comment-2794 Sun, 01 Dec 2024 09:42:27 +0000 http://hpcquantlib.wordpress.com/?p=4275#comment-2794 The code snipplet

Array localVol = Sqrt(2*dCdT/d2CdK2);

is the implementation of formula (15) from the original paper.

]]>
Comment on Andreasen-Huge Volatility Interpolation by Alex https://hpcquantlib.wordpress.com/2018/01/05/andreasen-huge-volatility-interpolation/#comment-2793 Tue, 26 Nov 2024 21:18:32 +0000 http://hpcquantlib.wordpress.com/?p=4275#comment-2793 I checked the implementation and it is apart that I am still getting confused.

1)You Solve the Dupire PDE for for the available strikes one Expiry at a time iteratively by jumping from one expiry to the next by solving the PDE.

2) Now you have everything calibrated to compute call prices at T_i<t<T_i+1 you use the call grid prices at T_i and backwards flat constant vol(i.e coming from T_i+1) and do a single jump to t.

3) What I don’t getis in Quant lib method AndreasenHugeVolatilityInterpl::getLocalVolSlice when you want to extract the slice at T_i<t<T_i+1 you don’t seem to use the flat local vol assumption between [T_i,T_i+1] you used in step 2.

Instead you use localVol = Sqrt(2*dCdT/d2CdK2) to extact the slice at t.. Theis is “almost”the normalized Dupire PDE a the top of this page with with a derivative missing.

This give non piecewise constant local volatilities for all the expiries in [T_i,T_i+1]

What is the intuition behind this?

]]>
Comment on High Performance American Option Pricing by hpcquantlib https://hpcquantlib.wordpress.com/2022/10/09/high-performance-american-option-pricing/#comment-2792 Sat, 23 Nov 2024 16:27:03 +0000 http://hpcquantlib.wordpress.com/?p=4827#comment-2792 I’m only using the QuantLib implementation.

]]>
Comment on High Performance American Option Pricing by Cocoval https://hpcquantlib.wordpress.com/2022/10/09/high-performance-american-option-pricing/#comment-2791 Fri, 22 Nov 2024 01:23:27 +0000 http://hpcquantlib.wordpress.com/?p=4827#comment-2791 In reply to Oleksandr.

do you have a public repo that shows your own implementation that does not depend on Quanltib? Trying to do a rust lib with this algo.

]]>
Comment on About by lukas kiss https://hpcquantlib.wordpress.com/about/#comment-2789 Tue, 10 Sep 2024 21:03:33 +0000 http://hpcquantlib.wordpress.com/?page_id=2#comment-2789 Great blog!

]]>
Comment on Multi-Dimensional Finite Difference Methods on a GPU by hpcquantlib https://hpcquantlib.wordpress.com/2012/12/27/multi-dimensional-finite-difference-methods-on-a-gpu/#comment-2788 Wed, 31 Jan 2024 21:22:17 +0000 http://hpcquantlib.wordpress.com/?p=1159#comment-2788 In reply to Mischa.

QuantLib 1.3, which is still available on sourceforge. boost must have been 1.51 or so.

]]>
Comment on Multi-Dimensional Finite Difference Methods on a GPU by Mischa https://hpcquantlib.wordpress.com/2012/12/27/multi-dimensional-finite-difference-methods-on-a-gpu/#comment-2787 Thu, 25 Jan 2024 12:50:50 +0000 http://hpcquantlib.wordpress.com/?p=1159#comment-2787 In reply to hpcquantlib.

Thanks! Can you confirm which version of QuantLib and Boost did you use for this study, please?

]]>