source: git/libpolys/polys/prCopy.h @ 24bc73

spielwiese
Last change on this file since 24bc73 was 266ae3, checked in by Hans Schoenemann <hannes@…>, 6 years ago
chg: only one definition for poly/ideal/map/matrix
  • Property mode set to 100644
File size: 1.6 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
10#include "polys/monomials/ring.h"
11
12typedef number (*nMapFunc)(number a, const coeffs src, const coeffs dst);
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
45poly prMapR(poly src, nMapFunc nMap, ring src_r, ring dest_r);
46#endif
Note: See TracBrowser for help on using the repository browser.