Main Page | Class List | File List | Class Members | File Members

Matop.c File Reference

#include <stdlib.h>
#include <polylib/polylib.h>

Go to the source code of this file.

Functions

void Lcm3 (Value a, Value b, Value *c)
ValueLcm (Value i, Value j)
MatrixIdentity (unsigned size)
void ExchangeRows (Matrix *M, int Row1, int Row2)
void ExchangeColumns (Matrix *M, int Column1, int Column2)
MatrixTranspose (Matrix *A)
MatrixMatrix_Copy (Matrix *Src)
Bool isIntegral (Matrix *A)
Bool isinHnf (Matrix *A)
void PutRowLast (Matrix *X, int Rownumber)
void PutRowFirst (Matrix *X, int Rownumber)
void PutColumnFirst (Matrix *X, int Columnnumber)
void PutColumnLast (Matrix *X, int Columnnumber)
MatrixAddANullRow (Matrix *M)
MatrixAddANullColumn (Matrix *M)
MatrixRemoveRow (Matrix *M, int Rownumber)
MatrixRemoveColumn (Matrix *M, int Columnnumber)
int findHermiteBasis (Matrix *M, Matrix **Result)


Function Documentation

Matrix* AddANullColumn Matrix M  ) 
 

Definition at line 276 of file Matop.c.

References Matrix, Matrix_Alloc(), matrix::NbColumns, matrix::NbRows, matrix::p, value_assign, and value_set_si.

Matrix* AddANullRow Matrix M  ) 
 

Definition at line 258 of file Matop.c.

References Matrix, Matrix_Alloc(), matrix::NbColumns, matrix::NbRows, matrix::p, value_assign, and value_set_si.

void ExchangeColumns Matrix M,
int  Column1,
int  Column2
 

Definition at line 76 of file Matop.c.

References Matrix, matrix::NbRows, matrix::p, Value, value_assign, value_clear, and value_init.

void ExchangeRows Matrix M,
int  Row1,
int  Row2
 

Definition at line 58 of file Matop.c.

References Matrix, matrix::NbColumns, matrix::p, Value, value_assign, value_clear, and value_init.

int findHermiteBasis Matrix M,
Matrix **  Result
 

Definition at line 332 of file Matop.c.

References AddANullColumn(), AddANullRow(), Hermite(), Identity(), Matrix, Matrix_Alloc(), Matrix_Copy(), Matrix_Free(), matrix::NbColumns, matrix::NbRows, matrix::p, RemoveRow(), SolveDiophantine(), Transpose(), value_assign, value_notzero_p, value_zero_p, and Vector_Free().

Matrix* Identity unsigned  size  ) 
 

Definition at line 41 of file Matop.c.

References Matrix, Matrix_Alloc(), matrix::p, size, and value_set_si.

Bool isinHnf Matrix A  ) 
 

Definition at line 148 of file Matop.c.

References Bool, False, Homogenise(), Matrix, Matrix_Free(), matrix::NbColumns, matrix::NbRows, matrix::p, True, Value, value_assign, value_clear, value_ge, value_init, and value_notzero_p.

Bool isIntegral Matrix A  ) 
 

Definition at line 125 of file Matop.c.

References Bool, False, Matrix, matrix::NbColumns, matrix::NbRows, matrix::p, True, Value, value_assign, value_clear, value_init, value_modulus, and value_notzero_p.

Value* Lcm Value  i,
Value  j
 

Definition at line 28 of file Matop.c.

References Lcm3(), Value, and value_init.

void Lcm3 Value  a,
Value  b,
Value c
 

Definition at line 5 of file Matop.c.

References Gcd(), Value, value_absolute, value_assign, value_clear, value_division, value_init, value_multiply, and value_zero_p.

Referenced by affine_periods(), Ehrhart_Quick_Apx_Full_Dim(), eliminate_var_with_constr(), FindHermiteBasisofDomain(), Lcm(), and mtransformation_inverse().

Matrix* Matrix_Copy Matrix Src  ) 
 

Definition at line 109 of file Matop.c.

References Matrix, Matrix_Alloc(), matrix::NbColumns, matrix::NbRows, matrix::p, and value_assign.

void PutColumnFirst Matrix X,
int  Columnnumber
 

Definition at line 220 of file Matop.c.

References Matrix, matrix::NbRows, matrix::p, Value, value_assign, value_clear, and value_init.

void PutColumnLast Matrix X,
int  Columnnumber
 

Definition at line 239 of file Matop.c.

References Matrix, matrix::NbColumns, matrix::NbRows, matrix::p, Value, value_assign, value_clear, and value_init.

void PutRowFirst Matrix X,
int  Rownumber
 

Definition at line 200 of file Matop.c.

References Matrix, matrix::NbColumns, matrix::p, Value, value_assign, value_clear, and value_init.

void PutRowLast Matrix X,
int  Rownumber
 

Definition at line 178 of file Matop.c.

References Matrix, matrix::NbColumns, matrix::NbRows, matrix::p, Value, value_assign, value_clear, and value_init.

Matrix* RemoveColumn Matrix M,
int  Columnnumber
 

Definition at line 311 of file Matop.c.

References Matrix, Matrix_Alloc(), matrix::NbColumns, matrix::NbRows, matrix::p, and Vector_Copy().

Matrix* RemoveRow Matrix M,
int  Rownumber
 

Definition at line 293 of file Matop.c.

References Matrix, Matrix_Alloc(), matrix::NbColumns, matrix::NbRows, matrix::p, and Vector_Copy().

Matrix* Transpose Matrix A  ) 
 

Definition at line 94 of file Matop.c.

References Matrix, Matrix_Alloc(), matrix::NbColumns, matrix::NbRows, matrix::p, and value_assign.


Generated on Mon Sep 12 15:15:12 2005 for polylib by doxygen 1.3.5