My Project
Loading...
Searching...
No Matches
Public Member Functions | Private Types | Friends
Vector Class Reference

#include <Poly.h>

Public Member Functions

 Vector (ring r=currRing)
 
 Vector (int n, ring r=currRing)
 
 Vector (const char *c, ring r=currRing)
 
 Vector (const Base &p)
 
 Vector (poly p, ring r)
 
 Vector (poly p, ring r, int)
 
 Vector (std::vector< int > v, ring r=currRing)
 
Vectoroperator+= (const Vector &p)
 
Vectoroperator+= (const Base &p)
 
- Public Member Functions inherited from PolyBase< POLY_VARIANT_MODUL, Vector, MyErrorHandler >
poly as_poly () const
 
void checkIsSameRing (T &p)
 
Intvec leadExp ()
 
void copy_on_write ()
 
void print () const
 
char * c_string () const
 
 PolyBase (ring r=currRing)
 
 PolyBase (const char *c, ring r=currRing)
 
 PolyBase (const PolyBase &p)
 
 PolyBase (poly p, ring r)
 
 PolyBase (poly p, ring r, int)
 
PolyBaseoperator+= (const PolyBase &p2)
 
PolyBaseoperator*= (const Poly &p2)
 
PolyBaseoperator*= (Number n)
 
virtual ~PolyBase ()
 
PolyInputIterator< create_typebegin ()
 
PolyInputIterator< create_typeend ()
 
ring getRing () const
 
int lmTotalDegree () const
 
Number leadCoef ()
 
create_type operator- ()
 

Private Types

typedef PolyBase< POLY_VARIANT_MODUL, Vector, MyErrorHandlerBase
 

Friends

bool operator== (const Vector &p1, const Vector &p2)
 

Additional Inherited Members

- Public Types inherited from PolyBase< POLY_VARIANT_MODUL, Vector, MyErrorHandler >
typedef Vector create_type
 
typedef PolyInputIterator< create_typeiterator
 
- Protected Member Functions inherited from PolyBase< POLY_VARIANT_MODUL, Vector, MyErrorHandler >
 PolyBase (PolyImpl &impl)
 
poly getInternalReference ()
 
- Protected Attributes inherited from PolyBase< POLY_VARIANT_MODUL, Vector, MyErrorHandler >
shared_ptr< PolyImplptr
 

Detailed Description

Definition at line 509 of file Poly.h.

Member Typedef Documentation

◆ Base

Definition at line 511 of file Poly.h.

Constructor & Destructor Documentation

◆ Vector() [1/7]

Vector::Vector ( ring  r = currRing)
inline

Definition at line 514 of file Poly.h.

514 :Base ((poly)NULL,r,0){
515 }
PolyBase< POLY_VARIANT_MODUL, Vector, MyErrorHandler > Base
Definition: Poly.h:511
#define NULL
Definition: omList.c:12

◆ Vector() [2/7]

Vector::Vector ( int  n,
ring  r = currRing 
)
inline

Definition at line 516 of file Poly.h.

516 :Base(*(new PolyImpl(n,r))){
517
518 }
Definition: Poly.h:45

◆ Vector() [3/7]

Vector::Vector ( const char *  c,
ring  r = currRing 
)
inline

Definition at line 519 of file Poly.h.

519 :Base(c,r){
520
521 }

◆ Vector() [4/7]

Vector::Vector ( const Base p)
inline

Definition at line 522 of file Poly.h.

522 :Base(p){
523 }
int p
Definition: cfModGcd.cc:4078

◆ Vector() [5/7]

Vector::Vector ( poly  p,
ring  r 
)
inline

Definition at line 526 of file Poly.h.

526 :Base(p,r){
527
528 }

◆ Vector() [6/7]

Vector::Vector ( poly  p,
ring  r,
int   
)
inline

Definition at line 529 of file Poly.h.

529 :Base(p,r,0){
530 }

◆ Vector() [7/7]

Vector::Vector ( std::vector< int >  v,
ring  r = currRing 
)
inline

Definition at line 531 of file Poly.h.

531 :Base(*(new PolyImpl((poly) NULL,r))){
532 unsigned int i;
533 int s=v.size();
534 poly p=p_ISet(1,r);
535 for(i=0;i<v.size();i++){
536 pSetExp(p,i+1,v[i]);
537 }
538 pSetm(p);
539 ptr.reset(new PolyImpl(p,r));
540 }
int i
Definition: cfEzgcd.cc:132
const CanonicalForm int s
Definition: facAbsFact.cc:51
const Variable & v
< [in] a sqrfree bivariate poly
Definition: facBivar.h:39
poly p_ISet(long i, const ring r)
returns the poly representing the integer i
Definition: p_polys.cc:1297
#define pSetm(p)
Definition: polys.h:271
#define pSetExp(p, i, v)
Definition: polys.h:42

Member Function Documentation

◆ operator+=() [1/2]

Vector & Vector::operator+= ( const Base p)
inline

Definition at line 551 of file Poly.h.

551 {
552
553 ((Base&)*this)+=p;
554 return *this;
555 }

◆ operator+=() [2/2]

Vector & Vector::operator+= ( const Vector p)
inline

Definition at line 546 of file Poly.h.

546 {
547
548 ((Base&)*this)+=p;
549 return *this;
550 }

Friends And Related Function Documentation

◆ operator==

bool operator== ( const Vector p1,
const Vector p2 
)
friend

Definition at line 614 of file Poly.h.

614 {
615 ring r1=p1.getRing();
616 ring r2=p2.getRing();
617 if (r1!=r2) return false;
618 return p_EqualPolys(p1.ptr->p,p2.ptr->p,r1);
619}
ring getRing() const
Definition: Poly.h:427
BOOLEAN p_EqualPolys(poly p1, poly p2, const ring r)
Definition: p_polys.cc:4512

The documentation for this class was generated from the following file: