Go to the source code of this file.
|
poly | p_ChineseRemainder (poly *xx, mpz_ptr *x, mpz_ptr *q, int rl, mpz_ptr *C, const ring R) |
|
ideal | id_ChineseRemainder_0 (ideal *xx, number *q, int rl, const ring r) |
|
ideal | id_Farey_0 (ideal xx, number N, const ring r) |
|
◆ id_ChineseRemainder_0()
Definition at line 196 of file kChinese.cc.
197{
198 int cnt=0;
int rw=0;
int cl=0;
199
200 for(
int j=
rl-1;
j>=0;
j--)
201 {
206 }
208 {
209 WerrorS(
"format mismatch in CRT");
211 }
215
217
224 vmem_init();
225
227 for(
int i=cnt-1;
i>=0;
i--)
228 {
230 }
232 {
233 queue->enqueue(-1);
234 }
235
238 {
240 if (pid==0) break;
241 }
243 {
250 {
251 int ind=queue->dequeue();
253 {
255 }
256
257 for(
int j=
rl-1;
j>=0;
j--)
258 {
261 else
263 }
266
268 char *
s=(
char*)
msg->str();
272 }
273 }
274 else
275 {
278 while(cnt>0)
279 {
281 char *
s=(
char*)
msg->str();
285
288 cnt--;
289 }
290
291 queue.free();
293 vmem_deinit();
294 }
296}
const CanonicalForm int s
void WerrorS(const char *s)
static void * feOptValue(feOptIndex opt)
static char * get_poly(char *s, int &ind, poly *p, const ring r)
static long size_poly(poly p, const ring r)
static char * send_poly(char *s, int ind, poly p, const ring r)
poly p_ChineseRemainder(poly *xx, mpz_ptr *x, mpz_ptr *q, int rl, mpz_ptr *C, const ring R)
static const int MAX_PROCESS
ideal idInit(int idsize, int rank)
initialise an ideal / module
ideal id_ChineseRemainder(ideal *xx, number *q, int rl, const ring r)
◆ id_Farey_0()
Definition at line 298 of file kChinese.cc.
299{
304
306
311
314 vmem_init();
315
317 for(
int i=cnt-1;
i>=0;
i--)
318 {
320 }
322 {
323 queue->enqueue(-1);
324 }
325
328 {
330 if (pid==0) break;
331 }
333 {
335 {
336 int ind=queue->dequeue();
338 {
340 }
341
345 char *
s=(
char*)
msg->str();
349 }
350 }
351 else
352 {
355 while(cnt>0)
356 {
358 char *
s=(
char*)
msg->str();
362
365 cnt--;
366 }
367
369
370 queue.free();
372 vmem_deinit();
373 }
375}
const CanonicalForm CFMap CFMap & N
ideal id_Farey(ideal x, number N, const ring r)
poly p_Farey(poly p, number N, const ring r)
◆ p_ChineseRemainder()