C++ 中的 QL 代码程序
我想在我自己的 C++ 代码中包含用于选项希腊语计算的 QuantLib 函数。我的问题是我可以只包含这些功能吗...我不想使用他们其余的东西。我显然不能只写
QuantLib::europeanOption.delta()
我已经包含了标题,
#include <ql/quantlib.hpp> using namespace QuantLib;
我希望他们有一些好的文档。
I want to include the QuantLib function for option greeks calculations in my own C++ code. my question is can I just include those functions...I don't want to use the rest of their stuff. I obviously cannot just write
QuantLib::europeanOption.delta()
I have included the header
#include <ql/quantlib.hpp> using namespace QuantLib;
I wish they had some good documentation.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您对编程、动态链接、Makefile 和其他内容感到如何自在?
本质上,这里没有魔法。 QL 拥有非常自由的许可证,您“只需”设置您的项目,以便
,并且这两个都可以通过调用
来自动化quantlib-config
分别带有适当的标志--clags
和--libs
。这与链接到任何其他外部库实际上没有什么不同。
How at ease are you with programming, dynamic linking, Makefiles and the rest?
In essence, there is no magic here. QL has a very liberal license, and you "merely" have to set up your project such that it finds
and both of those can be automated by calling
quantlib-config
with proper flags--clags
and--libs
, respectively.This is really no different than linking to any other external library.