version 1.53, 2004/05/14 09:20:56 |
version 1.55, 2004/12/04 09:39:27 |
|
|
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* DEVELOPER SHALL HAVE NO LIABILITY IN CONNECTION WITH THE USE, |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* PERFORMANCE OR NON-PERFORMANCE OF THE SOFTWARE. |
* |
* |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/dp.c,v 1.52 2004/05/14 06:02:54 noro Exp $ |
* $OpenXM: OpenXM_contrib2/asir2000/builtin/dp.c,v 1.54 2004/05/31 00:38:44 noro Exp $ |
*/ |
*/ |
#include "ca.h" |
#include "ca.h" |
#include "base.h" |
#include "base.h" |
Line 97 void Pnd_weyl_gr(),Pnd_weyl_gr_trace(); |
|
Line 97 void Pnd_weyl_gr(),Pnd_weyl_gr_trace(); |
|
void Pnd_nf(); |
void Pnd_nf(); |
void Pdp_initial_term(); |
void Pdp_initial_term(); |
void Pdp_order(); |
void Pdp_order(); |
|
void Pnd_set_nalg(); |
|
|
LIST dp_initial_term(); |
LIST dp_initial_term(); |
LIST dp_order(); |
LIST dp_order(); |
Line 148 struct ftab dp_tab[] = { |
|
Line 149 struct ftab dp_tab[] = { |
|
{"nd_weyl_gr",Pnd_weyl_gr,4}, |
{"nd_weyl_gr",Pnd_weyl_gr,4}, |
{"nd_weyl_gr_trace",Pnd_weyl_gr_trace,5}, |
{"nd_weyl_gr_trace",Pnd_weyl_gr_trace,5}, |
{"nd_nf",Pnd_nf,5}, |
{"nd_nf",Pnd_nf,5}, |
|
{"nd_set_nalg",Pnd_set_nalg,1}, |
|
|
/* F4 algorithm */ |
/* F4 algorithm */ |
{"dp_f4_main",Pdp_f4_main,3}, |
{"dp_f4_main",Pdp_f4_main,3}, |
|
|
if ( current_option ) { |
if ( current_option ) { |
f.id = O_LIST; f.body = mknode(1,p); |
f.id = O_LIST; f.body = mknode(1,p); |
parse_gr_option(&f,current_option,&v,&homo,&modular,&ord); |
parse_gr_option(&f,current_option,&v,&homo,&modular,&ord); |
dp_current_spec = ord; |
initd(ord); |
} else |
} else |
error("dp_ptod : invalid argument"); |
error("dp_ptod : invalid argument"); |
} else { |
} else { |
|
|
if ( ac == 1 ) { |
if ( ac == 1 ) { |
if ( current_option ) { |
if ( current_option ) { |
parse_gr_option(f,current_option,&v,&homo,&modular,&ord); |
parse_gr_option(f,current_option,&v,&homo,&modular,&ord); |
dp_current_spec = ord; |
initd(ord); |
} else |
} else |
error("dp_ltod : invalid argument"); |
error("dp_ltod : invalid argument"); |
} else { |
} else { |
|
|
n = mknode(1,f); MKLIST(l,n); f = l; |
n = mknode(1,f); MKLIST(l,n); f = l; |
is_list = 0; |
is_list = 0; |
} |
} |
if ( current_option ) |
if ( current_option ) { |
parse_gr_option(f,current_option,&v,&homo,&modular,&ord); |
parse_gr_option(f,current_option,&v,&homo,&modular,&ord); |
else |
initd(ord); |
|
} else |
ord = dp_current_spec; |
ord = dp_current_spec; |
initiallist = dp_initial_term(f,ord); |
initiallist = dp_initial_term(f,ord); |
if ( !is_list ) |
if ( !is_list ) |
|
|
n = mknode(1,f); MKLIST(l,n); f = l; |
n = mknode(1,f); MKLIST(l,n); f = l; |
is_list = 0; |
is_list = 0; |
} |
} |
if ( current_option ) |
if ( current_option ) { |
parse_gr_option(f,current_option,&v,&homo,&modular,&ord); |
parse_gr_option(f,current_option,&v,&homo,&modular,&ord); |
else |
initd(ord); |
|
} else |
ord = dp_current_spec; |
ord = dp_current_spec; |
ordlist = dp_order(f,ord); |
ordlist = dp_order(f,ord); |
if ( !is_list ) |
if ( !is_list ) |
|
|
m = QTOS((Q)ARG3(arg)); |
m = QTOS((Q)ARG3(arg)); |
create_order_spec(0,ARG4(arg),&ord); |
create_order_spec(0,ARG4(arg),&ord); |
nd_gr_trace(f,v,m,homo,ord,rp); |
nd_gr_trace(f,v,m,homo,ord,rp); |
|
} |
|
|
|
void Pnd_set_nalg(NODE arg,Q *rp) |
|
{ |
|
nd_set_nalg(QTOS((Q)ARG0(arg))); |
|
*rp = (Q)ARG0(arg); |
} |
} |
|
|
void Pnd_nf(arg,rp) |
void Pnd_nf(arg,rp) |