SCIP-SDP  2.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros | Typedefs
lapack_sdpa.c File Reference

interface methods for eigenvector computation and matrix multiplication using openblas More...

Go to the source code of this file.

Macros

#define BMS_CALL(x)
 
#define SCIP_RealTOINT(x)   ((LAPACKINTTYPE) (x + 0.5))
 

Typedefs

typedef long long int LAPACKINTTYPE
 

Functions

Functions
SCIP_RETCODE SCIPlapackMatrixVectorMult (int nrows, int ncols, SCIP_Real *matrix, SCIP_Real *vector, SCIP_Real *result)
 

Detailed Description

interface methods for eigenvector computation and matrix multiplication using openblas

Author
Sonja Mars
Lars Schewe
Tristan Gally

Definition in file lapack_sdpa.c.

Macro Definition Documentation

#define BMS_CALL (   x)
Value:
do \
{ \
if( NULL == (x) ) \
{ \
SCIPerrorMessage("No memory in function call\n"); \
return SCIP_NOMEMORY; \
} \
} \
while( FALSE )

Checks if a BMSallocMemory-call was successfull, otherwise returns SCIP_NOMEMRY

Definition at line 58 of file lapack_sdpa.c.

#define SCIP_RealTOINT (   x)    ((LAPACKINTTYPE) (x + 0.5))

transforms a SCIP_Real (that should be integer, but might be off by some numerical error) to an integer by adding an epsilon and rounding down

Definition at line 69 of file lapack_sdpa.c.

Typedef Documentation

typedef long long int LAPACKINTTYPE

Definition at line 55 of file lapack_sdpa.c.

Function Documentation

SCIP_RETCODE SCIPlapackMatrixVectorMult ( int  nrows,
int  ncols,
SCIP_Real *  matrix,
SCIP_Real *  vector,
SCIP_Real *  result 
)

performs matrix-vector-multiplication using BLAS

Parameters
nrowsnumber of rows in matrix
ncolsnumber of cols in matrix
matrixthe matrix we want to multiply
vectorvector we want to multiply with the matrix
resultpointer to store the resulting vector

Definition at line 218 of file lapack_sdpa.c.

References F77_FUNC.

Referenced by cutUsingEigenvector().