|
SCIP-SDP
3.1.0
|
interface methods for eigenvector computation and matrix multiplication using openblas More...
Go to the source code of this file.
Macros | |
| #define | SDPA_VERSION 738 |
| #define | BMS_CALL(x) |
| #define | SCIP_RealTOINT(x) ((LAPACKINTTYPE) (x + 0.5)) |
Typedefs | |
| typedef long long int | LAPACKINTTYPE |
Functions | |
Functions | |
| SCIP_RETCODE | SCIPlapackComputeEigenvectorDecomposition (BMS_BUFMEM *bufmem, int n, SCIP_Real *A, SCIP_Real *eigenvalues, SCIP_Real *eigenvectors) |
| SCIP_RETCODE | SCIPlapackMatrixVectorMult (int nrows, int ncols, SCIP_Real *matrix, SCIP_Real *vector, SCIP_Real *result) |
| SCIP_RETCODE | SCIPlapackMatrixMatrixMult (int nrowsA, int ncolsA, SCIP_Real *matrixA, SCIP_Bool transposeA, int nrowsB, int ncolsB, SCIP_Real *matrixB, SCIP_Bool transposeB, SCIP_Real *result) |
interface methods for eigenvector computation and matrix multiplication using openblas
Definition in file lapack_sdpa.c.
| #define SDPA_VERSION 738 |
Definition at line 56 of file lapack_sdpa.c.
| #define BMS_CALL | ( | x | ) |
Checks if a BMSallocMemory-call was successfull, otherwise returns SCIP_NOMEMORY
Definition at line 59 of file lapack_sdpa.c.
Referenced by SCIPlapackComputeEigenvectorDecomposition().
| #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 70 of file lapack_sdpa.c.
Referenced by SCIPlapackComputeEigenvectorDecomposition().
| typedef long long int LAPACKINTTYPE |
Definition at line 55 of file lapack_sdpa.c.
| SCIP_RETCODE SCIPlapackComputeEigenvectorDecomposition | ( | BMS_BUFMEM * | bufmem, |
| int | n, | ||
| SCIP_Real * | A, | ||
| SCIP_Real * | eigenvalues, | ||
| SCIP_Real * | eigenvectors | ||
| ) |
computes the eigenvector decomposition of a symmetric matrix using LAPACK
| bufmem | buffer memory |
| n | size of matrix |
| A | matrix for which the decomposition should be computed |
| eigenvalues | pointer to store eigenvalues (should be length n) |
| eigenvectors | pointer to store eigenvectors (should be length n*n), eigenvectors are given as rows |
Definition at line 229 of file lapack_sdpa.c.
References BMS_CALL, F77_FUNC, and SCIP_RealTOINT.
Referenced by calcRelax().
| SCIP_RETCODE SCIPlapackMatrixVectorMult | ( | int | nrows, |
| int | ncols, | ||
| SCIP_Real * | matrix, | ||
| SCIP_Real * | vector, | ||
| SCIP_Real * | result | ||
| ) |
performs matrix-vector-multiplication using BLAS
| nrows | number of rows in matrix |
| ncols | number of cols in matrix |
| matrix | the matrix we want to multiply |
| vector | vector we want to multiply with the matrix |
| result | pointer to store the resulting vector |
Definition at line 332 of file lapack_sdpa.c.
References F77_FUNC.
Referenced by cutUsingEigenvector().
| SCIP_RETCODE SCIPlapackMatrixMatrixMult | ( | int | nrowsA, |
| int | ncolsA, | ||
| SCIP_Real * | matrixA, | ||
| SCIP_Bool | transposeA, | ||
| int | nrowsB, | ||
| int | ncolsB, | ||
| SCIP_Real * | matrixB, | ||
| SCIP_Bool | transposeB, | ||
| SCIP_Real * | result | ||
| ) |
performs matrix-matrix-multiplication A*B using BLAS
| nrowsA | number of rows in matrix A |
| ncolsA | number of cols in matrix A |
| matrixA | matrix A given as nrowsA * ncolsA array |
| transposeA | should matrix A be transposed before multiplication? |
| nrowsB | number of rows in matrix B |
| ncolsB | number of cols in matrix B |
| matrixB | matrix B given as ncolsA * ncolsB array |
| transposeB | should matrix B be transposed before multiplication? |
| result | pointer to nrowsA * nrowsB array to store the resulting matrix |
Definition at line 370 of file lapack_sdpa.c.
References F77_FUNC.
Referenced by calcRelax().
1.8.7