File: primitiveelement.C

package info (click to toggle)
givaro 3.2.10-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 3,388 kB
  • ctags: 2,088
  • sloc: cpp: 11,000; sh: 9,193; makefile: 309; ansic: 93; sed: 4
file content (21 lines) | stat: -rw-r--r-- 439 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream>
#include <givaro/givintnumtheo.h>
#include <givaro/givtimer.h>



int main(int argc, char** argv)
{
  IntNumTheoDom<> IP;
  IntNumTheoDom<>::Element a,pr;
  if (argc > 1) a = IntNumTheoDom<>::Element(argv[1]); else std::cin >> a;
  
        Timer tim; tim.clear(); tim.start();
	IP.prim_elem(pr, a);
        tim.stop();
	IntegerDom().write( std::cout, pr ) << std::endl;
	std::cerr << tim << std::endl;

  return 0;
}