Logo Search packages:      
Sourcecode: semidef-oct version File versions  Download package

sp.h

#define SQR(x) ((x)*(x))
#define MAX(x,y)  ((x) > (y) ? (x) : (y))
#define MIN(x,y)  ((x) < (y) ? (x) : (y))

#define NB 32            /* block size for dgels */
#define MINABSTOL 1e-8 
#define MAXITERS 100
#define TOLC 1e-5        /* tolerance used for dual infeasibility */
#define SIGTOL 1e-5      /* tolerance used for detecting zero steps 
                          * dF or dZ */ 
#define MINRCOND 1e-8    /* minimum rcond to declare F_i dependent */

#ifdef nounderscores
#define dnrm2_ dnrm2
#define ddot_ ddot
#define dcopy_ dcopy
#define daxpy_ daxpy
#define dscal_ dscal
#define dgemv_ dgemv
#define dspmv_ dspmv
#define dgemm_ dgemm
#define dgels_ dgels
#define dspgst_ dspgst
#define dspev_ dspev
#define dspgv_ dspgv
#define dtrcon_ dtrcon
#endif


/* BLAS 1 */
double dnrm2_( );
double ddot_( );
void dcopy_( );
void daxpy_( );
void dscal_( );

/* BLAS 2 */
void dgemv_( );
void dspmv_( );

/* BLAS 3 */
void dgemm_( );

/* LAPACK */
void dgels_( );
void dspgst_( );
void dspev_( );
void dspgv_( );
void dtrcon_( );

#ifdef __cplusplus
extern "C" {
      int sp( int m, int L, double *F, int *blck_szs, double *c, 
           double *x, double *Z, double *ul, double nu, double abstol, 
           double reltol, double tv, int *iters, double *work, 
           int lwork, int *iwork, int *info );
}
#endif


Generated by  Doxygen 1.6.0   Back to index