示例#1
0
int main(int argc, char* argv[])
{
    if (argc != 5)
    {
        printf("expected four arguments (see source)\n");
        return 0;
    }

    test_support_init();

    arg_t arg;
    arg.length1 = atoi(argv[1]);
    arg.length2 = atoi(argv[2]);
    arg.bits1 = atoi(argv[3]);
    arg.bits2 = atoi(argv[4]);

    double min_time, max_time;

    for (unsigned long i = 0; i < 3; i++)
    {
        arg.which = 0;
        prof_repeat(&min_time, &max_time, target, &arg);
        printf(" mpz_poly: min = %.3le, \tmax = %.3le\n", min_time, max_time);
        fflush(stdout);

        arg.which = 1;
        prof_repeat(&min_time, &max_time, target, &arg);
        printf("fmpz_poly: min = %.3le, \tmax = %.3le\n", min_time, max_time);
        fflush(stdout);
    }

    test_support_cleanup();

    return 0;
}
示例#2
0
int main()
{
   test_support_init();
   ZmodF_mul_test_all();
   test_support_cleanup();
   
   flint_stack_cleanup();
   
   return 0;
}
示例#3
0
int main()
{
   test_support_init();
   F_mpz_mat_test_all();
   test_support_cleanup();
   
   flint_stack_cleanup();
   _F_mpz_cleanup();

   return 0;
}
示例#4
0
void profDriver_NTL_poly_div2(char* params)
{
   unsigned long max_bits;
   double ratio;
    
   sscanf(params, "%ld %lf", &max_bits, &ratio);
 
   test_support_init();
   prof2d_set_sampler(sample_NTL_poly_div2);
   run_triangle(max_bits, ratio);
   test_support_cleanup();
}
示例#5
0
void profDriver_F_mpz_poly_mul(char* params)
{
   ulong max_length;
   double ratio;

   sscanf(params, "%ld %lf", &max_length, &ratio);

   test_support_init();
   prof2d_set_sampler(sample_F_mpz_poly_mul);
   run_triangle(max_length, ratio);
   test_support_cleanup();
}