Loading...
Searching...
No Matches
fglmvec.h
Go to the documentation of this file.
// emacs edit mode for this file is -*- C++ -*-
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT - The FGLM-Algorithm
* header file for fglmvec.cc. See fglmvec.cc for details.
*/
#ifndef FGLMVEC_H
#define FGLMVEC_H
#include "coeffs/numbers.h"
class fglmVectorRep;
class fglmVector
{
protected:
fglmVectorRep * rep;
void makeUnique();
fglmVector( fglmVectorRep * rep );
public:
fglmVector();
fglmVector( int size );
fglmVector( int size, int basis );
fglmVector( const fglmVector & v );
~fglmVector();
#ifndef HAVE_EXPLICIT_CONSTR
void mac_constr( const fglmVector & v);
void mac_constr_i( int size);
void clearelems();
#endif
int size() const;
int numNonZeroElems() const;
void nihilate( const number fac1, const number fac2, const fglmVector v );
fglmVector & operator = ( const fglmVector & v );
int operator == ( const fglmVector & );
int operator != ( const fglmVector & );
int isZero();
int elemIsZero( int i );
fglmVector & operator += ( const fglmVector & );
fglmVector & operator -= ( const fglmVector & );
fglmVector & operator *= ( const number & );
fglmVector & operator /= ( const number & );
friend fglmVector operator - ( const fglmVector & v );
friend fglmVector operator + ( const fglmVector & lhs, const fglmVector & rhs );
friend fglmVector operator - ( const fglmVector & lhs, const fglmVector & rhs );
friend fglmVector operator * ( const fglmVector & v, const number n );
friend fglmVector operator * ( const number n, const fglmVector & v );
number getconstelem( int i ) const;
number & getelem( int i );
void setelem( int i, number & n );
number gcd() const;
number clearDenom();
};
#endif
i
int i
Definition cfEzgcd.cc:132
fglmVectorRep
Definition fglmvec.cc:31
fglmVector::operator-=
fglmVector & operator-=(const fglmVector &)
Definition fglmvec.cc:328
fglmVector::operator-
friend fglmVector operator-(const fglmVector &v)
Definition fglmvec.cc:398
fglmVector::rep
fglmVectorRep * rep
Definition fglmvec.h:21
fglmVector::clearDenom
number clearDenom()
Definition fglmvec.cc:505
fglmVector::size
int size() const
Definition fglmvec.cc:207
fglmVector::numNonZeroElems
int numNonZeroElems() const
Definition fglmvec.cc:212
fglmVector::elemIsZero
int elemIsZero(int i)
Definition fglmvec.cc:300
fglmVector::getconstelem
number getconstelem(int i) const
Definition fglmvec.cc:446
fglmVector::setelem
void setelem(int i, number &n)
Definition fglmvec.cc:451
fglmVector::operator!=
int operator!=(const fglmVector &)
Definition fglmvec.cc:290
fglmVector::gcd
number gcd() const
Definition fglmvec.cc:458
fglmVector::operator*=
fglmVector & operator*=(const number &)
Definition fglmvec.cc:350
fglmVector::operator+=
fglmVector & operator+=(const fglmVector &)
Definition fglmvec.cc:305
fglmVector::operator+
friend fglmVector operator+(const fglmVector &lhs, const fglmVector &rhs)
Definition fglmvec.cc:412
fglmVector::makeUnique
void makeUnique()
Definition fglmvec.cc:198
fglmVector::operator/=
fglmVector & operator/=(const number &)
Definition fglmvec.cc:371
fglmVector::~fglmVector
~fglmVector()
Definition fglmvec.cc:174
fglmVector::nihilate
void nihilate(const number fac1, const number fac2, const fglmVector v)
Definition fglmvec.cc:218
fglmVector::isZero
int isZero()
Definition fglmvec.cc:295
fglmVector::fglmVector
fglmVector(fglmVectorRep *rep)
Definition fglmvec.cc:152
fglmVector::operator==
int operator==(const fglmVector &)
Definition fglmvec.cc:272
fglmVector::operator*
friend fglmVector operator*(const fglmVector &v, const number n)
Definition fglmvec.cc:426
fglmVector::getelem
number & getelem(int i)
Definition fglmvec.cc:440
fglmVector::fglmVector
fglmVector()
Definition fglmvec.cc:156
fglmVector::operator=
fglmVector & operator=(const fglmVector &v)
Definition fglmvec.cc:261
v
const Variable & v
< [in] a sqrfree bivariate poly
Definition facBivar.h:39
numbers.h