|
From: Viala Jean-R. (AMUNDI) <jea...@am...> - 2011-11-10 16:16:04
|
Hi
Thanks I saw it
Your suggestion doesn't work (it doesn't compile) but I think it's
because my mat is not UBLAS
I will try later but right now the solution below works fine
Regards
JRV
for (int i=0; i < N; ++i)
{
std::copy(mat[i].begin(), mat[i].end(),
result.row_begin(i));
}
-----Original Message-----
From: Bojan Nikolic [mailto:bo...@bn...]
Sent: Wednesday, November 09, 2011 12:39 PM
To: Viala Jean-Renaud (AMUNDI)
Cc: qua...@li...
Subject: Re: [Quantlib-dev] How to copy a Boost::Matrix into a
Quantlib::Matrix
Hi,
"Viala Jean-Renaud (AMUNDI)" <jea...@am...> 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
|