|
From: Bojan N. <bo...@bn...> - 2011-11-08 09:21:58
|
Hi, jrviala <jea...@am...> writes: > I'm trying to use std::copy but it fails to compile > It seems a rather simple problem I'm confident someone has used it somewhere > could you tell me the correct wording? Something like this should work: boost::numeric::ublas::matrix<double> m (3, 3); QuantLib::Matrix mm(3,3); std::copy(m.begin1(), m.end1(), mm.begin()); Although you need to check the column/row convention (I believe this will transpose the matrix). Best, Bojan -- Bojan Nikolic || http://www.bnikolic.co.uk/ql |