Boost logo

Boost Users :

Subject: Re: [Boost-users] SQL ---- Boost Matrix
From: Ismael Fadiga (ismaeltfadiga_at_[hidden])
Date: 2014-08-25 16:38:47


hi matrix<double>pricemat(rowCount,colCount);for(unsignedi =0;i <pricemat.size1 ();++i)for(unsignedj =0;j <pricemat.size2 ();++j)pricemat (i,j)=cmd2[3].asDouble();std::cout <<pricemat <<std::endl; prints a [221,3] , matching my expectations:(rowCount =221&colCount=3) However the elements of the matrix are not, as the values retrieved from sql using  cmd2[3].asDouble()  are not logically stored as matrix elements for (unsigned i = 0; i < pricemat.size1 (); ++ i)  and for (unsigned j = 0; j < pricemat.size2 (); ++j) . has anyone got an explanation? Cheers On Monday, 25 August 2014, 11:19, Lars Viklund <zao_at_[hidden]> wrote: On Sun, Aug 24, 2014 at 08:19:16PM +0100, Ismael Fadiga wrote: > Hi Hello there, You appear to be repeating yourself with the same information several times. If you do not feel that you have gotten any answers, you should probably think over whether your question is well-formed and understandable. I would recommend that you split up your text into paragraphs, try to sort out inline code, and pose actual questions about particular Boost libraries and their use. As it stands currently, I cannot tell what libraries your question is about, nor what you are actually asking about. No-one will read your mind and implement your tasks for you. _______________________________________________ Boost-users mailing list Boost-users_at_[hidden] http://lists.boost.org/mailman/listinfo.cgi/boost-users



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net