Changeset 3f94cb in git
- Timestamp:
- Jul 24, 2019, 5:11:36 PM (4 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '0604212ebb110535022efecad887940825b97c3f')
- Children:
- 3d5b277e2651a792f826b544d03d7179c438dba0
- Parents:
- 690c98d2dc9aa6f233ef1da705b30c910d6e9898
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/flint_mpoly.cc
r690c98 r3f94cb 241 241 fmpq_t content; 242 242 243 convert_sing_to_fmpq_mpoly_base( slong num_threads_,fmpq_mpoly_struct * res_,244 245 : num_threads( num_threads_),243 convert_sing_to_fmpq_mpoly_base(fmpq_mpoly_struct * res_, 244 const fmpq_mpoly_ctx_struct * ctx_, const ring r_, poly p) 245 : num_threads(0), 246 246 res(res_), 247 247 ctx(ctx_), … … 428 428 thread_pool_handle * handles; 429 429 slong num_handles; 430 slong thread_limit = 1000; 431 432 /* get workers */ 430 slong thread_limit = 1000; // TODO: should be paramter to this function 431 432 /* the constructor works out the length of p and sets some markers */ 433 convert_sing_to_fmpq_mpoly_base base(res, ctx, r, p); 434 435 /* sensibly limit thread count and get workers */ 436 thread_limit = FLINT_MIN(thread_limit, base.length/1024); 433 437 handles = NULL; 434 438 num_handles = 0; … … 444 448 } 445 449 446 /* the constructor works out the length of p and sets some markers */447 convert_sing_to_fmpq_mpoly_base base(num_handles + 1, res, ctx, r, p);448 449 450 /* fill in thread division points */ 451 base.num_threads = 1 + num_handles; 450 452 convert_sing_to_fmpq_mpoly_arg * args = new convert_sing_to_fmpq_mpoly_arg[base.num_threads]; 451 453 slong cur_idx = 0; … … 606 608 thread_pool_handle * handles; 607 609 slong num_handles; 608 slong thread_limit = 1000; 609 610 /* get workers */ 610 slong thread_limit = 1000;// TODO: should be paramter to this function 611 612 /* sensibly limit threads and get workers */ 613 thread_limit = FLINT_MIN(thread_limit, f->zpoly->length/1024); 611 614 handles = NULL; 612 615 num_handles = 0; … … 623 626 624 627 convert_fmpq_mpoly_to_sing_base base(num_handles + 1, f, ctx, r); 625 626 628 convert_fmpq_mpoly_to_sing_arg * args = new convert_fmpq_mpoly_to_sing_arg[base.num_threads]; 627 629 slong cur_idx = 0; … … 681 683 ring r; 682 684 683 convert_sing_to_nmod_mpoly_base( slong num_threads_,nmod_mpoly_struct * res_,684 685 : num_threads( num_threads_),685 convert_sing_to_nmod_mpoly_base(nmod_mpoly_struct * res_, 686 const nmod_mpoly_ctx_struct * ctx_, const ring r_, poly p) 687 : num_threads(0), 686 688 res(res_), 687 689 ctx(ctx_), … … 792 794 thread_pool_handle * handles; 793 795 slong num_handles; 794 slong thread_limit = 1000; 795 796 /* get workers */ 796 slong thread_limit = 1000; // TODO: should be paramter to this function 797 798 /* the constructor works out the length of p and sets some markers */ 799 convert_sing_to_nmod_mpoly_base base(res, ctx, r, p); 800 801 /* sensibly limit thread count and get workers */ 802 thread_limit = FLINT_MIN(thread_limit, base.length/1024); 797 803 handles = NULL; 798 804 num_handles = 0; … … 808 814 } 809 815 810 convert_sing_to_nmod_mpoly_base base(num_handles + 1, res, ctx, r, p);811 812 816 /* fill in thread division points */ 817 base.num_threads = 1 + num_handles; 813 818 convert_sing_to_nmod_mpoly_arg * args = new convert_sing_to_nmod_mpoly_arg[base.num_threads]; 814 819 slong cur_idx = 0; … … 921 926 thread_pool_handle * handles; 922 927 slong num_handles; 923 slong thread_limit = 1000; 924 925 /* get workers */ 928 slong thread_limit = 1000; // TODO: should be paramter to this function 929 930 /* sensibly limit threads and get workers */ 931 thread_limit = FLINT_MIN(thread_limit, f->length/1024); 926 932 handles = NULL; 927 933 num_handles = 0; … … 938 944 939 945 convert_nmod_mpoly_to_sing_base base(num_handles + 1, f, ctx, r); 940 941 946 convert_nmod_mpoly_to_sing_arg * args = new convert_nmod_mpoly_to_sing_arg[base.num_threads]; 942 947 slong cur_idx = 0;
Note: See TracChangeset
for help on using the changeset viewer.