diff options
author | Joe Zhao <ztuowen@gmail.com> | 2015-04-08 17:33:02 +0800 |
---|---|---|
committer | Joe Zhao <ztuowen@gmail.com> | 2015-04-08 17:33:02 +0800 |
commit | 2aed1b11102196f3d839b2801a92a87243355725 (patch) | |
tree | ab218eec7c626db10ef892751ab5dcc35fa4a490 /main.cpp | |
parent | 0c92357c8ab3a616e51b7cf83d3c038027b8fa99 (diff) | |
download | ranksvm-2aed1b11102196f3d839b2801a92a87243355725.tar.gz ranksvm-2aed1b11102196f3d839b2801a92a87243355725.tar.bz2 ranksvm-2aed1b11102196f3d839b2801a92a87243355725.zip |
conjugate gradient method tested
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -9,7 +9,7 @@ INITIALIZE_EASYLOGGINGPP -using Eigen::MatrixXd; +using namespace Eigen; namespace po = boost::program_options; po::variables_map vm; @@ -76,6 +76,15 @@ int main(int argc, char **argv) { po::store(po::parse_command_line(argc, argv, desc), vm); po::notify(vm); + /* Conjugate Gradient method test + MatrixXd A(3,3); + VectorXd b(3),x(3); + A<< 1,2,3,2,2,4,3,4,1; + b<< 1,1,1; + x<< 0,0,0; + cg_solve(A,b,x); + write_stream(std::cout,x);*/ + // Print help if necessary if (vm.count("help") || !(vm.count("train") || vm.count("validate") || vm.count("predict"))) { std::cout << desc; |