Login  Register

Re: swig some class are not wrapped

Posted by archlight on Mar 03, 2011; 8:20am
URL: http://quantlib.414.s1.nabble.com/swig-some-class-are-not-wrapped-tp6058p6064.html

It is the swap.py from examples folder. I am using swig2.0.1 executable.

by the way, how do I represent std::vector<std::vector<Handle > > in python. I am using numpy matrix but it says parameter type not matched

I found something in vector.i but there is no nested vector example.

Regards
Luigi Ballabio wrote
On Wed, 2011-03-02 at 20:15 -0800, archlight wrote:
>   However after I modified volalilities.i to add class SwaptionVolCube2, I
> got error below (I can build and install) [...]
>     def fairSpread(self): return _QuantLib.VanillaSwap_fairSpread(self)
> RuntimeError: result not available

>     I have no idea how to proceed. your help is much appreciated.

The build seems to have worked.  For some reason, the swap can't
calculate the result.  Any chance you can show us the Python code that
leads to the error?

Luigi


--

Call on God, but row away from the rocks.
-- Indian proverb



------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in
Real-Time with Splunk. Collect, index and harness all the fast moving IT data
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
QuantLib-users mailing list
QuantLib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/quantlib-users