Loading...
Searching...
No Matches
fglmgauss.h
Go to the documentation of this file.
// emacs edit mode for this file is -*- C++ -*-
/****************************************
* Computer Algebra System SINGULAR *
****************************************/
/*
* ABSTRACT - header file for the gauss - reducer
* (used by fglm)
*/
#ifndef FGLMGAUSS_H
#define FGLMGAUSS_H
#include "kernel/structs.h"
#include "kernel/fglm/fglmvec.h"
class gaussElem;
class gaussReducer
{
private:
gaussElem * elems;
BOOLEAN * isPivot;
int * perm;
fglmVector v;
fglmVector p;
number pdenom;
int size;
int max;
public:
gaussReducer( int dimen );
~gaussReducer();
// reduce returns TRUE, if v reduces to 0, FALSE otherwise;
BOOLEAN reduce( fglmVector v );
// if a vector does not reduce to zero, then it can be stored as a new gauss
// vector.
// Has to be called after reduce!
void store();
// if a vector reduces to zero, then one can get the corresponding fglmVector
// of the linear dependence
// Has to be called after reduce!
fglmVector getDependence();
};
#endif
BOOLEAN
int BOOLEAN
Definition auxiliary.h:88
fglmVector
Definition fglmvec.h:19
gaussElem
Definition fglmgauss.cc:24
gaussReducer::elems
gaussElem * elems
Definition fglmgauss.h:21
gaussReducer::pdenom
number pdenom
Definition fglmgauss.h:26
gaussReducer::~gaussReducer
~gaussReducer()
Definition fglmgauss.cc:73
gaussReducer::gaussReducer
gaussReducer(int dimen)
Definition fglmgauss.cc:57
gaussReducer::max
int max
Definition fglmgauss.h:28
gaussReducer::isPivot
BOOLEAN * isPivot
Definition fglmgauss.h:22
gaussReducer::v
fglmVector v
Definition fglmgauss.h:24
gaussReducer::size
int size
Definition fglmgauss.h:27
gaussReducer::reduce
BOOLEAN reduce(fglmVector v)
Definition fglmgauss.cc:89
gaussReducer::store
void store()
Definition fglmgauss.cc:159
gaussReducer::perm
int * perm
Definition fglmgauss.h:23
gaussReducer::p
fglmVector p
Definition fglmgauss.h:25
gaussReducer::getDependence
fglmVector getDependence()
Definition fglmgauss.cc:196
fglmvec.h
structs.h