File: fplllRunner

package info (click to toggle)
frobby 0.9.6-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,616 kB
  • sloc: cpp: 30,134; sh: 1,184; makefile: 306; ansic: 102; lisp: 10
file content (17 lines) | stat: -rw-r--r-- 515 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  void reduceLatticeBasis(BigIdeal& basis) {
    ASSERT(!basis.empty());
    string filename = "__4ti2.tmp";

    unsigned int rowCount = basis.size();
    unsigned int columnCount = basis[0].size();

    writeLatticeBasis(filename, basis);
    stringstream cmd;
    cmd << "~/Desktop/fplll-1.3/fast m "
	<< rowCount << ' ' << columnCount
	<< " < " + filename
	<< " > " + filename + ".out";
    system(cmd.str().c_str());

    readLatticeBasis(filename + ".out", rowCount, columnCount, basis);
  }