Debian Codegraph @

tests/prep/0206tests/tmpexport/anmacros.sl

raw
1 % Macros for the anick-in-bergman module(s)
2
3 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
4 %% Copyright (C) 1996
5 %% Joergen Backelin and Alexander Podoplelov
6 %%
7 %% Bergman and Anick are distributed in the hope that they will be
8 %% useful, but WITHOUT ANY WARRANTY. No author or distributor
9 %% accepts responsibility to anyone for the consequences of using them
10 %% or for whether they serve any particular purpose or work at all,
11 %% unless (s)he says so in writing. Refer to the Bergman General Public
12 %% License for full details.
13
14 %% Everyone is granted permission to copy, modify and redistribute
15 %% bergman, but only under the conditions described in the
16 %% Bergman General Public License. A copy of this license is
17 %% supposed to have been given to you along with bergman so you
18 %% can know your rights and responsibilities. It should be in a
19 %% file named copyright. Among other things, the copyright notice
20 %% and this notice must be preserved on all copies.
21 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
22
23
24 % Created 1996-06-23.
25
26
27 (OFF RAISE)
28
29 % Changes:
30 % ChR -> Chn
31 % LOOKFOR ->
32 %
33
34 % Chain handling macros:
35
36 (DM anChn!= (rrg) (CONS 'EQ (CDR rrg)))
37 (DM anChn2LowerChn (rrg) (CONS 'CDAR (CDR rrg)))
38 (DM anChn2HiChns (rrg) (CONS 'CDDR (CDR rrg)))
39 (DM anChn2LastVx (rrg) (CONS 'CAAR (CDR rrg)))
40 (DM anChn2Diff (rrg) (CONS 'CDADR (CDR rrg)))
41 (DM anChn2Length (rrg) (CONS 'CAADR (CDR rrg)))
42 (DM anSETHIGHERCHAINS (rrg)
43 (LIST 'RPLACD (LIST 'CDR (CADR rrg)) (CADDR rrg)))
44 (DM anSetDiff (rrg)
45 (LIST 'RPLACD (LIST 'CADR (CADR rrg)) (CADDR rrg)))
46
47
48 % Semi-distributed tensor polynomial macros:
49
50 (DM anSDP0!? (rrg) (LIST 'NULL (CONS 'CDR (CDR rrg))))
51
52 (DM anSDPTail (rrg) (CONS 'CDR (CDR rrg)))
53 (DM anSDP2FirstSDPTm (rrg) (CONS 'CAR (CDR rrg)))
54 (DM anSDP2FirstChn (rrg) (CONS 'CAAR (CDR rrg)))
55 (DM anSDP2FirstQPol (rrg) (CONS 'CDAR (CDR rrg)))
56 (DM anSDP2NextSDPTm (rrg) (CONS 'CADR (CDR rrg)))
57 (DM anSDP2NextChn (rrg) (CONS 'CAADR (CDR rrg)))
58 (DM anSDP2NextQPol (rrg) (CONS 'CDADR (CDR rrg)))
59 (DM anSDPTm2Chn (rrg) (CONS 'CAR (CDR rrg)))
60 (DM anSDPTm2QPol (rrg) (CONS 'CDR (CDR rrg)))
61 (DM anChn!&QPol2SDPTm (rrg) (CONS 'CONS (CDR rrg)))
62 (DM anChn!&QPol2SDPTail (rrg)
63 (LIST 'NCONS (CONS 'anChn!&QPol2SDPTm (CDR rrg))))
64
65 (DM anMakeNewSDP (rrg) (LIST 'NCONS 'NIL))
66
67 (DM anNextSDPTail (rrg) (LIST 'SETQ (CADR rrg) (CONS 'CDR (CDR rrg))))
68 (DM anAppendSDPTail (rrg) (CONS 'RPLACD (CDR rrg)))
69 (DM anCopySDP (rrg) (LIST 'CONS 'NIL (LIST 'DPLISTCOPY (CONS 'CDR (CDR rrg)))))
70
71 (DM anInsertSDPTm (rrg)
72 (LIST 'RPLACD (CADR rrg) (LIST 'CONS (CADDR rrg) (LIST 'CDR (CADR rrg)))))
73 (DM anRemoveSDPTm (rrg) (LIST 'RPLACD (CADR rrg) (CONS 'CDDR (CDR rrg))))
74
75 (DM anReplaceChninSDPTm (rrg) (CONS 'RPLACA (CDR rrg)))
76 (DM anReplaceQPolinSDPTm (rrg) (CONS 'RPLACD (CDR rrg)))
77
78
79
80 (ON RAISE)