source: git/libpolys/polys/prCopy.h @ 405407

spielwiese
Last change on this file since 405407 was b56249, checked in by Oleksandr Motsak <motsak@…>, 11 years ago
Misc fixes due to building on Mac OS X 10.6 fix: no pyobject-building if configured without dynamic loading chg: minor include reordering + forward declarations + cosmetics fix: AM_COND_IF may be undefined in older automake/autoconf fix: distribute ALL tested tests fix: no double definition of NATNUMBER/int_number in structs.h fix: n_ExtGcd is not always related to HAVE_RINGS
  • Property mode set to 100644
File size: 1.7 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
14/*************************************************************************
15 *
16 * MoveR, CopyR, ShallowCopyR: operations to get ideals/polys
17 *                             from source_r to dest_r where
18 *  - Coeff(source_r) == Coeff(dest_r)
19 *  - dest_r->N <= source_r->N
20 * Move:        input is destroyed
21 * ShallowCopy: monomials are copied, coeffs are set
22 * Copy:        monomials and coeffs are copied
23 *
24 ************************************************************************/
25poly prMoveR_NoSort(poly &p, ring r, ring dest_r);
26poly prMoveR(poly &p, ring r, ring dest_r);
27poly prCopyR_NoSort(poly p, ring r, ring dest_r);
28poly prCopyR(poly p, ring r, ring dest_r);
29poly prShallowCopyR_NoSort(poly p, ring r, ring dest_t);
30poly prShallowCopyR(poly p, ring r, ring dest_t);
31poly prHeadR(poly p, ring r, ring dest_rg);
32
33ideal idrMoveR_NoSort(ideal &id, ring r, ring dest_r );
34ideal idrMoveR(ideal &id, ring r, ring dest_r );
35
36ideal idrCopyR_NoSort(ideal id, ring r, ring dest_r );
37ideal idrCopyR(ideal id, ring r, ring dest_r );
38
39ideal idrShallowCopyR_NoSort(ideal id, ring r, ring dest_r );
40ideal idrShallowCopyR(ideal id, ring r, ring dest_r );
41
42/// Copy leading terms of id[i] via prHeeadR into dest_r
43ideal idrHeadR(ideal id, ring r, ring dest_r );
44#endif
Note: See TracBrowser for help on using the repository browser.