Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
main.cc
Package: ssvd-0.2.5.tar.gz [view]
Upload User: hkdiguang
Upload Date: 2013-05-12
Package Size: 105k
Code Size: 1k
Category:
Information Retrieval
Development Platform:
Unix_Linux
- #include <cstring>
- #include <cstdlib>
- #include <iostream>
- #include <svdpack.h>
- #include <s_runlas2.h>
- #include <s_opts.h>
- int main(int argc, char** argv)
- {
- if (argc != 3) {
- std::cerr << "Usage: svd <ccs file prefix> <txx|tfn etc.>n";
- return -1;
- }
- // Create struct that holds options for ssvd routines
- ssvd::OptionsStruct svdopts;
- strcpy(svdopts.prefix, "example");
- strcpy(svdopts.txx, "txx");
- // Example values for the params.
- svdopts.lanmax = 4;
- svdopts.endl = -1e-30;
- svdopts.endr = 1e-30;
- svdopts.kappa = 1e-6;
- svdopts.in1 = 0;
- svdopts.vectors = true;
- svdopts.ascii = true;
- svdopts.dofiles = 1; // Do not store sing vects.
- sprintf(svdopts.out1, "%s.svd", "example");
- sprintf(svdopts.out2, "%s.vec", "example");
- svdopts.nums = 4;
- svdopts.sA = 0;
- ssvd::svdpack* s = new ssvd::s_runlas2(&svdopts);
- // run this program as: ./svd fileprefix txx
- s->init(argv[1], argv[2]);
- s->runIt();
- return 0;
- }