APPSPACK_CDDLIB_Interface.c File Reference
Detailed Description
Implementation of functions declared in
APPSPACK_CDDLIB_Interface.h.
 Author:
 Robert Michael Lewis, College of William & Mary, 2005
Definition in file APPSPACK_CDDLIB_Interface.c.
#include "APPSPACK_CDDLIB_Interface.h"
#include "setoper.h"
#include "cdd.h"
Include dependency graph for APPSPACK_CDDLIB_Interface.c:
Go to the source code of this file.

Functions 
int  compute_cone_generators (int *num_pointy, double ***P, int *num_lineality, double ***L, int n, int num_equalities, double **Eq, int num_inequalities, double **Iq, int append) 
 Interface function to call CDDLIB.

Function Documentation
int compute_cone_generators 
( 
int * 
num_pointy, 


double *** 
P, 


int * 
num_lineality, 


double *** 
L, 


int 
n, 


int 
num_equalities, 


double ** 
Eq, 


int 
num_inequalities, 


double ** 
Iq, 


int 
append 

) 



Interface function to call CDDLIB.
 Parameters:

 num_pointy  (output) The number of generators for the "pointy part" of the tangent cone. 
 P  (output) On exit, *P points to a (num_pointy x n) matrix stored in double** format whose rows form a positive spanning set for the "pointy part" of the tangent cone. That is, *P[i] points to a double array of length n. If we define to be the mathematical vector stored in *P[i], then generates the pointy part of the space. 
 num_lineality  (output) The number of vectors in a basis for the lineality space of the tangent cone. 
 L  (output) On exit, *L points to a (num_lineality x n) matrix stored in double** format whose rows form a basis for th lineality space of the tangent cone. That is, *L[i] points to a double array of length n. If we define to be the mathematical vector store in *L[i], then forms a basis for the lineality space. 
 n  (input) The array length, a.k.a. the length of array Eq[i] and Iq[i], a.k.a, the number of columns in Eq and Iq. 
 num_equalities  (input) Number of rows in Eq. 
 Eq  (input) A (num_equalities x n) matrix stored in double** format whose rows span the lineality space of the normal cone. 
 num_inequalities  (input) Number of rows in Iq. 
 Iq  (input) A (num_inequalities x n) matrix stored in double** format whose rows generate the "pointy part" of the normal cone. 
 append  (input) Used as a logical operator to signal whether or not P and L are already partially formed and being appended to. 
Caution: Memory for arguments P and L is allocated internally within compute_cone_generators() "cstyle", and must therefore be deallocated "cstyle" externally.
 Author:
 Robert Michael Lewis, College of William & Mary, 2005
Definition at line 53 of file APPSPACK_CDDLIB_Interface.c.
Referenced by APPSPACK::Directions::buildWithCddlib(). 
© Sandia
Corporation  Site
Contact  Privacy
and Security
Generated on Fri Feb 16 10:33:35 2007 for APPSPACK 5.0.1 by
1.3.9.1 written by Dimitri van Heesch,
© 19972002