source: git/libpolys/polys/prCopy.h @ 61e855

spielwiese
Last change on this file since 61e855 was fd1b1be, checked in by Oleksandr Motsak <motsak@…>, 10 years ago
Minor header correction
  • Property mode set to 100644
File size: 1.9 KB
Line 
1#ifndef PRCOPY_H
2#define PRCOPY_H
3/****************************************
4*  Computer Algebra System SINGULAR     *
5****************************************/
6/*
7* ABSTRACT - declarations of functions for Copy/Move/Delete for Polys
8*/
9
10struct spolyrec; typedef struct spolyrec polyrec; typedef polyrec* poly;
11struct ip_sring; typedef struct ip_sring* ring; typedef struct ip_sring const* const_ring;
12struct sip_sideal; typedef struct sip_sideal *ideal;
13
14struct snumber; typedef struct snumber *   number;
15struct n_Procs_s; typedef struct  n_Procs_s  *coeffs;
16
17typedef number (*nMapFunc)(number a, const coeffs src, const coeffs dst);
18
19/*************************************************************************
20 *
21 * MoveR, CopyR, ShallowCopyR: operations to get ideals/polys
22 *                             from source_r to dest_r where
23 *  - Coeff(source_r) == Coeff(dest_r)
24 *  - dest_r->N <= source_r->N
25 * Move:        input is destroyed
26 * ShallowCopy: monomials are copied, coeffs are set
27 * Copy:        monomials and coeffs are copied
28 *
29 ************************************************************************/
30poly prMoveR_NoSort(poly &p, ring r, ring dest_r);
31poly prMoveR(poly &p, ring r, ring dest_r);
32poly prCopyR_NoSort(poly p, ring r, ring dest_r);
33poly prCopyR(poly p, ring r, ring dest_r);
34poly prShallowCopyR_NoSort(poly p, ring r, ring dest_t);
35poly prShallowCopyR(poly p, ring r, ring dest_t);
36poly prHeadR(poly p, ring r, ring dest_rg);
37
38ideal idrMoveR_NoSort(ideal &id, ring r, ring dest_r );
39ideal idrMoveR(ideal &id, ring r, ring dest_r );
40
41ideal idrCopyR_NoSort(ideal id, ring r, ring dest_r );
42ideal idrCopyR(ideal id, ring r, ring dest_r );
43
44ideal idrShallowCopyR_NoSort(ideal id, ring r, ring dest_r );
45ideal idrShallowCopyR(ideal id, ring r, ring dest_r );
46
47/// Copy leading terms of id[i] via prHeeadR into dest_r
48ideal idrHeadR(ideal id, ring r, ring dest_r );
49
50poly prMapR(poly src, nMapFunc nMap, ring src_r, ring dest_r);
51#endif
Note: See TracBrowser for help on using the repository browser.