DSDP
|
Set sparse or dense matrices into the cone. More...
Go to the source code of this file.
Functions | |
int | DSDPGetIdentityDataMatF (int, double, struct DSDPDataMat_Ops **, void **) |
Create a sparse matrix usuable by DSDP in full symmetric format. More... | |
int | DSDPGetIdentityDataMatP (int, double, struct DSDPDataMat_Ops **, void **) |
Create a sparse matrix usuable by DSDP in packed symmetric format. More... | |
int | DSDPGetR1PMat (int, double, int, const int[], const double[], int, struct DSDPDataMat_Ops **, void **) |
Create a rank one matrix usuable by DSDP in packed symmetric format. More... | |
int | DSDPGetR1UMat (int, double, int, const int[], const double[], int, struct DSDPDataMat_Ops **, void **) |
Create a rank one matrix usuable by DSDP in full symmetric format. More... | |
int | DSDPGetVechMat (int, int, double, const int[], const double[], int, struct DSDPDataMat_Ops **, void **) |
Given data in packed symmetric format, create a sparse matrix usuable by DSDP. More... | |
int | DSDPGetVecUMat (int, int, double, const int[], const double[], int, struct DSDPDataMat_Ops **, void **) |
Given data in full symmetric format, create a sparse matrix usuable by DSDP. More... | |
int | DSDPSetDataMatZero (DSDPDataMat *A) |
Make a data matrix a zero matrix. More... | |
int | SDPConeAddADenseVecMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, double val[], int nnz) |
Add a matrix ![]() | |
int | SDPConeAddARankOneMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz) |
Add data matrix ![]() | |
int | SDPConeAddASparseVecMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz) |
Add data matrix ![]() | |
int | SDPConeAddConstantMat (SDPCone sdpcone, int blockj, int vari, int n, double value) |
Add a matrix ![]() | |
int | SDPConeAddDataMatrix (SDPCone, int, int, int, char, struct DSDPDataMat_Ops *, void *) |
Add a data matrix ![]() | |
int | SDPConeAddIdentity (SDPCone sdpcone, int blockj, int vari, int n, double val) |
Add a matrix ![]() | |
int | SDPConeSetADenseVecMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, double val[], int nnz) |
Set a matrix ![]() | |
int | SDPConeSetARankOneMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz) |
Set data matrix ![]() | |
int | SDPConeSetASparseVecMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, int ishift, const int ind[], const double val[], int nnz) |
Set data matrix ![]() | |
int | SDPConeSetConstantMat (SDPCone sdpcone, int blockj, int vari, int n, double value) |
Set a matrix ![]() | |
int | SDPConeSetIdentity (SDPCone sdpcone, int blockj, int vari, int n, double val) |
Set a matrix ![]() | |
int | SDPConeSetRIdentity (SDPCone sdpcone, int blockj, int n, double rr) |
Add identify matrix to dual matrix. More... | |
int | SDPConeSetRMatrix (SDPCone, int, int, char, struct DSDPDataMat_Ops *, void *) |
Add identity to dual matrix. More... | |
int | SDPConeSetZeroMat (SDPCone sdpcone, int blockj, int vari, int n) |
Set a matrix ![]() | |
Set sparse or dense matrices into the cone.
Definition in file dsdpadddatamat.c.
int DSDPGetIdentityDataMatF | ( | int | n, |
double | val, | ||
struct DSDPDataMat_Ops ** | dops, | ||
void ** | imat | ||
) |
Create a sparse matrix usuable by DSDP in full symmetric format.
n | number of rows and columns of the matrix |
val | multiple of identity matrix. |
dops | address of a pointer to a table of function pointers |
imat | address of a pointer to an opaque data type. |
Definition at line 69 of file identity.c.
int DSDPGetIdentityDataMatP | ( | int | n, |
double | val, | ||
struct DSDPDataMat_Ops ** | dops, | ||
void ** | imat | ||
) |
Create a sparse matrix usuable by DSDP in packed symmetric format.
n | number of rows and columns of the matrix |
val | multiple of identity matrix. |
dops | address of a pointer to a table of function pointers |
imat | address of a pointer to an opaque data type. |
Definition at line 44 of file identity.c.
int DSDPGetR1PMat | ( | int | n, |
double | ev, | ||
int | ishift, | ||
const int | spai[], | ||
const double | spval[], | ||
int | nnz, | ||
struct DSDPDataMat_Ops ** | mops, | ||
void ** | mmat | ||
) |
Create a rank one matrix usuable by DSDP in packed symmetric format.
n | number of rows and columns of the matrix |
ev | multiple of the outer product. |
ishift | index of first element in vector. |
spai | array of indices for vector. |
spval | array of vector values. |
nnz | size of arrays. |
mops | address of a pointer to a table of function pointers |
mmat | address of a pointer to an opaque data type. |
Definition at line 77 of file rmmat.c.
Referenced by SDPConeAddARankOneMat().
int DSDPGetR1UMat | ( | int | n, |
double | ev, | ||
int | ishift, | ||
const int | spai[], | ||
const double | spval[], | ||
int | nnz, | ||
struct DSDPDataMat_Ops ** | mops, | ||
void ** | mmat | ||
) |
Create a rank one matrix usuable by DSDP in full symmetric format.
n | number of rows and columns of the matrix |
ev | multiple of the outer product. |
ishift | index of first element in vector. |
spai | array of indices for vector. |
spval | array of vector values. |
nnz | size of arrays. |
mops | address of a pointer to a table of function pointers |
mmat | address of a pointer to an opaque data type. |
Definition at line 101 of file rmmat.c.
Referenced by SDPConeAddARankOneMat().
int DSDPGetVechMat | ( | int | n, |
int | ishift, | ||
double | alpha, | ||
const int | ind[], | ||
const double | val[], | ||
int | nnz, | ||
struct DSDPDataMat_Ops ** | sops, | ||
void ** | smat | ||
) |
Given data in packed symmetric format, create a sparse matrix usuable by DSDP.
n | number of rows and columns of the matrix |
ishift | the index of the first element in the matrix (usually 0) |
alpha | the multiple of these matrix. |
ind | array of indices for matrix. |
val | array of matrix values. |
nnz | size of arrays. |
sops | address of a pointer to a table of function pointers |
smat | address of a pointer to an opaque data type. |
Definition at line 460 of file vech.c.
Referenced by SDPConeAddASparseVecMat().
int DSDPGetVecUMat | ( | int | n, |
int | ishift, | ||
double | alpha, | ||
const int | ind[], | ||
const double | val[], | ||
int | nnz, | ||
struct DSDPDataMat_Ops ** | sops, | ||
void ** | smat | ||
) |
Given data in full symmetric format, create a sparse matrix usuable by DSDP.
n | number of rows and columns of the matrix |
ishift | the index of the first element in the matrix (usually 0) |
alpha | the multiple of these matrix. |
ind | array of matrix indices. |
val | array of matrix values. |
nnz | number of elements in array. |
sops | address of a pointer to a table of function pointers |
smat | address of a pointer to an opaque data type. |
Definition at line 454 of file vechu.c.
Referenced by SDPConeAddASparseVecMat().
int DSDPSetDataMatZero | ( | DSDPDataMat * | A | ) |
Make a data matrix a zero matrix.
A | data matrix. |
Definition at line 537 of file dsdpadddatamat.c.
Referenced by DSDPBlockRemoveDataMatrix().
int SDPConeSetRIdentity | ( | SDPCone | sdpcone, |
int | blockj, | ||
int | n, | ||
double | rr | ||
) |
Add identify matrix to dual matrix.
sdpcone | SDP cone |
blockj | block number j from 0 to nblocks |
n | dimension of the matrix |
rr | multiple of identity matrix. |
Definition at line 438 of file dsdpadddatamat.c.
int SDPConeSetRMatrix | ( | SDPCone | sdpcone, |
int | blockj, | ||
int | n, | ||
char | format, | ||
struct DSDPDataMat_Ops * | dsdpdataops, | ||
void * | data | ||
) |
Add identity to dual matrix.
sdpcone | SDP cone |
blockj | block number j from 0 to nblocks |
n | dimension of the matrix |
format | storage format 'P' (default) or 'U' |
data | address of a structure ( cast to void* ) with matrix data. |
dsdpdataops | address of a structure of function pointers that operate on the matrix data |
Definition at line 181 of file dsdpadddata.c.