My Project
Loading...
Searching...
No Matches
Data Structures | Macros | Functions
fglmvec.cc File Reference
#include "kernel/mod2.h"
#include "kernel/structs.h"
#include "coeffs/numbers.h"
#include "fglm.h"
#include "fglmvec.h"

Go to the source code of this file.

Data Structures

class  fglmVectorRep
 

Macros

#define PROT(msg)
 
#define STICKYPROT(msg)   if (BTEST1(OPT_PROT)) Print(msg)
 
#define PROT2(msg, arg)
 
#define STICKYPROT2(msg, arg)   if (BTEST1(OPT_PROT)) Print(msg,arg)
 
#define fglmASSERT(ignore1, ignore2)
 

Functions

fglmVector operator- (const fglmVector &v)
 
fglmVector operator+ (const fglmVector &lhs, const fglmVector &rhs)
 
fglmVector operator- (const fglmVector &lhs, const fglmVector &rhs)
 
fglmVector operator* (const fglmVector &v, const number n)
 
fglmVector operator* (const number n, const fglmVector &v)
 

Macro Definition Documentation

◆ fglmASSERT

#define fglmASSERT (   ignore1,
  ignore2 
)

Definition at line 28 of file fglmvec.cc.

◆ PROT

#define PROT (   msg)

Definition at line 24 of file fglmvec.cc.

◆ PROT2

#define PROT2 (   msg,
  arg 
)

Definition at line 26 of file fglmvec.cc.

◆ STICKYPROT

#define STICKYPROT (   msg)    if (BTEST1(OPT_PROT)) Print(msg)

Definition at line 25 of file fglmvec.cc.

◆ STICKYPROT2

#define STICKYPROT2 (   msg,
  arg 
)    if (BTEST1(OPT_PROT)) Print(msg,arg)

Definition at line 27 of file fglmvec.cc.

Function Documentation

◆ operator*() [1/2]

fglmVector operator* ( const fglmVector v,
const number  n 
)

Definition at line 426 of file fglmvec.cc.

427{
428 fglmVector temp = v;
429 temp *= n;
430 return temp;
431}
const Variable & v
< [in] a sqrfree bivariate poly
Definition: facBivar.h:39

◆ operator*() [2/2]

fglmVector operator* ( const number  n,
const fglmVector v 
)

Definition at line 433 of file fglmvec.cc.

434{
435 fglmVector temp = v;
436 temp *= n;
437 return temp;
438}

◆ operator+()

fglmVector operator+ ( const fglmVector lhs,
const fglmVector rhs 
)

Definition at line 412 of file fglmvec.cc.

413{
414 fglmVector temp = lhs;
415 temp += rhs;
416 return temp;
417}

◆ operator-() [1/2]

fglmVector operator- ( const fglmVector lhs,
const fglmVector rhs 
)

Definition at line 419 of file fglmvec.cc.

420{
421 fglmVector temp = lhs;
422 temp -= rhs;
423 return temp;
424}

◆ operator-() [2/2]

fglmVector operator- ( const fglmVector v)

Definition at line 398 of file fglmvec.cc.

399{
400 fglmVector temp (v.size ());
401 int i;
402 number n;
403 for(i = v.size (); i > 0; i--)
404 {
405 n = nCopy (v.getconstelem (i));
406 n = nInpNeg (n);
407 temp.setelem (i, n);
408 }
409 return temp;
410}
int i
Definition: cfEzgcd.cc:132
#define nInpNeg(n)
Definition: numbers.h:21
#define nCopy(n)
Definition: numbers.h:15