|
Boost Users : |
Subject: [Boost-users] [boost-users][boost/numeric/ublas/matrix.hpp]: How to use SQL query to create boost matrix?
From: It neophyte (phdlux85_at_[hidden])
Date: 2014-12-28 16:20:01
Dear all
I've read some matrix documentation (see below) and did not experience any
difficulty in compiling codes:
http://www.boost.org/doc/libs/1_42_0/libs/numeric/ublas/doc/matrix.htm
However I am using SQL API to query data from c++, and wondering how I can
build a boost price matrix.
*Ps*: table contains 3 columns: name (*string* type), date (*datetime*
type), price (*double* type)
1/While retrieving the query data, my screen output is as follows:
aaaaa 2014-12-22 30.1
aaaaa 2014-12-21 27.7
bbbbb 2014-12-22 13.2
bbbbb 2014-12-21 10.3
ccccc 2014-12-22 80.4
ccccc 2014-12-21 79.9
2/My aim is to create a following price matrix (here 2 by 3) as:
30.1 13.2 80.4
27.7 10.3 79.9
Thanks in advance and Regards
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