Login  Register

Re: How to copy a Boost::Matrix into a Quantlib::Matrix

Posted by Bojan Nikolic on Nov 09, 2011; 11:39am
URL: http://quantlib.414.s1.nabble.com/How-to-copy-a-Boost-Matrix-into-a-Quantlib-Matrix-tp12318p12321.html


Hi,

"Viala Jean-Renaud (AMUNDI)" <[hidden email]> writes:

> std::copy(mat.begin(), mat.end(), result.begin());

Possibly you skimmed over it, but in the snippet I sent this was:

std::copy(mat.begin1(), mat.end1(), result.begin());
                   ^ Note the 1 here!
                               ^ here too!

Best,
Bojan

--
Bojan Nikolic          ||          http://www.bnikolic.co.uk

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
QuantLib-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quantlib-dev