My Project
Loading...
Searching...
No Matches
fglmvec.h
Go to the documentation of this file.
1// emacs edit mode for this file is -*- C++ -*-
2
3/****************************************
4* Computer Algebra System SINGULAR *
5****************************************/
6/*
7* ABSTRACT - The FGLM-Algorithm
8* header file for fglmvec.cc. See fglmvec.cc for details.
9*/
10
11#ifndef FGLMVEC_H
12#define FGLMVEC_H
13
14#include "coeffs/numbers.h"
15
16class fglmVectorRep;
17
19{
20protected:
22 void makeUnique();
24public:
25 fglmVector();
26 fglmVector( int size );
27 fglmVector( int size, int basis );
28 fglmVector( const fglmVector & v );
30#ifndef HAVE_EXPLICIT_CONSTR
31 void mac_constr( const fglmVector & v);
32 void mac_constr_i( int size);
33 void clearelems();
34#endif
35 int size() const;
36 int numNonZeroElems() const;
37
38 void nihilate( const number fac1, const number fac2, const fglmVector v );
40
41 int operator == ( const fglmVector & );
42 int operator != ( const fglmVector & );
43 int isZero();
44 int elemIsZero( int i );
45
48 fglmVector & operator *= ( const number & );
49 fglmVector & operator /= ( const number & );
50 friend fglmVector operator - ( const fglmVector & v );
51 friend fglmVector operator + ( const fglmVector & lhs, const fglmVector & rhs );
52 friend fglmVector operator - ( const fglmVector & lhs, const fglmVector & rhs );
53 friend fglmVector operator * ( const fglmVector & v, const number n );
54 friend fglmVector operator * ( const number n, const fglmVector & v );
55
56 number getconstelem( int i ) const;
57 number & getelem( int i );
58 void setelem( int i, number & n );
59
60 number gcd() const;
61 number clearDenom();
62};
63
64#endif
int i
Definition: cfEzgcd.cc:132
fglmVector & operator-=(const fglmVector &)
Definition: fglmvec.cc:328
friend fglmVector operator-(const fglmVector &v)
Definition: fglmvec.cc:398
fglmVectorRep * rep
Definition: fglmvec.h:21
number clearDenom()
Definition: fglmvec.cc:502
int size() const
Definition: fglmvec.cc:207
int numNonZeroElems() const
Definition: fglmvec.cc:212
int elemIsZero(int i)
Definition: fglmvec.cc:300
number getconstelem(int i) const
Definition: fglmvec.cc:446
void setelem(int i, number &n)
Definition: fglmvec.cc:451
int operator!=(const fglmVector &)
Definition: fglmvec.cc:290
number gcd() const
Definition: fglmvec.cc:458
fglmVector & operator*=(const number &)
Definition: fglmvec.cc:350
fglmVector & operator+=(const fglmVector &)
Definition: fglmvec.cc:305
friend fglmVector operator+(const fglmVector &lhs, const fglmVector &rhs)
Definition: fglmvec.cc:412
void makeUnique()
Definition: fglmvec.cc:198
fglmVector & operator/=(const number &)
Definition: fglmvec.cc:371
~fglmVector()
Definition: fglmvec.cc:174
void nihilate(const number fac1, const number fac2, const fglmVector v)
Definition: fglmvec.cc:218
int isZero()
Definition: fglmvec.cc:295
int operator==(const fglmVector &)
Definition: fglmvec.cc:272
friend fglmVector operator*(const fglmVector &v, const number n)
Definition: fglmvec.cc:426
number & getelem(int i)
Definition: fglmvec.cc:440
fglmVector()
Definition: fglmvec.cc:156
fglmVector & operator=(const fglmVector &v)
Definition: fglmvec.cc:261
const Variable & v
< [in] a sqrfree bivariate poly
Definition: facBivar.h:39