DSDP
Functions
dsdpadddata.c File Reference

Set block sizes, sparsity, format, and data matrices. More...

Go to the source code of this file.

Functions

int SDPConeAddDataMatrix (SDPCone sdpcone, int blockj, int vari, int n, char format, struct DSDPDataMat_Ops *dsdpdataops, void *data)
 Add a data matrix $A_{i,j}$. More...
 
int SDPConeCheckData (SDPCone sdpcone)
 Check the matrix operations on a data matrix;. More...
 
int SDPConeCheckI (SDPCone sdpcone, int vari)
 Check validity of parameter. More...
 
int SDPConeCheckJ (SDPCone sdpcone, int blockj)
 Check validity of parameter. More...
 
int SDPConeCheckM (SDPCone sdpcone, int m)
 Check validity of parameter. More...
 
int SDPConeCheckN (SDPCone sdpcone, int blockj, int n)
 Check validity of parameter. More...
 
int SDPConeCheckStorageFormat (SDPCone sdpcone, int blockj, char format)
 Check validity of parameters. More...
 
int SDPConeClearVMatrix (SDPCone sdpcone, int blockj, int n)
 Free V matrix. More...
 
int SDPConeGetBlockSize (SDPCone sdpcone, int blockj, int *n)
 Get the dimension of one block in the semidefinite cone. More...
 
int SDPConeGetNumberOfBlocks (SDPCone sdpcone, int *nblocks)
 Get the number of blocks in the semidefinite cone. More...
 
int SDPConeGetStorageFormat (SDPCone sdpcone, int blockj, char *format)
 Get the storage format for the block. More...
 
int SDPConeGetXArray (SDPCone sdpcone, int blockj, double *xx[], int *nn)
 After applying the solver, set a pointer to the array in the object with the solution X. More...
 
int SDPConeMatrixView (SDPCone sdpcone, int blockj)
 Print the dense array to the screen. More...
 
int SDPConeRemoveDataMatrix (SDPCone sdpcone, int blockj, int vari)
 Remove the data matrix $A_{i,j}$ from the cone. More...
 
int SDPConeRestoreXArray (SDPCone sdpcone, int blockj, double *xx[], int *nn)
 Restore the dense array and set these pointers to null. More...
 
int SDPConeSetBlockSize (SDPCone sdpcone, int blockj, int n)
 Set the dimension of one block in the semidefinite cone. More...
 
int SDPConeSetRMatrix (SDPCone sdpcone, int blockj, int n, char format, struct DSDPDataMat_Ops *dsdpdataops, void *data)
 Add identity to dual matrix. More...
 
int SDPConeSetSparsity (SDPCone sdpcone, int blockj, int nnz)
 Set the number of nonzero matrices in a block of the semidefinite cone. More...
 
int SDPConeSetStorageFormat (SDPCone sdpcone, int blockj, char format)
 Set the dense storage format of a block in the semidefinite cone. More...
 
int SDPConeSetXArray (SDPCone sdpcone, int blockj, int n, double xx[], int nn)
 Provide an array for the SDPCone object can use to store dense matrices. More...
 
int SDPConeSetXMat (SDPCone sdpcone, int blockj, int n)
 Create X matrix. More...
 
int SDPConeUseFullSymmetricFormat (SDPCone sdpcone, int blockj)
 Use full symmetric format for the dense array. More...
 
int SDPConeUsePackedFormat (SDPCone sdpcone, int blockj)
 Use packed symmetric format for the dense array. More...
 
int SDPConeValidStorageFormat (SDPCone sdpcone, char format)
 Check validity of parameter. More...
 
int SDPConeView (SDPCone sdpcone)
 Print the SDPCone to the screen;. More...
 
int SDPConeView2 (SDPCone sdpcone)
 Print the SDP cone to the screen in a second way. More...
 
int SDPConeView3 (SDPCone sdpcone)
 Print the SDP cone to the screen in a third way. More...
 
int SDPConeViewDataMatrix (SDPCone sdpcone, int blockj, int vari)
 Print a data matrix to the screen. More...
 

Detailed Description

Set block sizes, sparsity, format, and data matrices.

Definition in file dsdpadddata.c.

Function Documentation

int SDPConeCheckI ( SDPCone  sdpcone,
int  vari 
)

Check validity of parameter.

Parameters
sdpconeSDP cone
varivariable i from 0 through m

Definition at line 15 of file dsdpadddata.c.

Referenced by SDPConeAddDataMatrix(), SDPConeRemoveDataMatrix(), and SDPConeViewDataMatrix().

int SDPConeCheckJ ( SDPCone  sdpcone,
int  blockj 
)
int SDPConeCheckM ( SDPCone  sdpcone,
int  m 
)

Check validity of parameter.

Parameters
sdpconeSDP cone
mnumber of y variables

Definition at line 68 of file dsdpadddata.c.

Referenced by SDPConeAddADotX(), and SDPConeComputeS().

int SDPConeCheckN ( SDPCone  sdpcone,
int  blockj,
int  n 
)

Check validity of parameter.

Parameters
sdpconeSDP cone
blockjblock number
ndimension of block.

Definition at line 48 of file dsdpadddata.c.

Referenced by SDPConeAddDataMatrix(), SDPConeAddXVAV(), SDPConeComputeS(), SDPConeComputeX(), SDPConeSetRMatrix(), SDPConeSetXArray(), SDPConeViewX(), and SDPConeXVMultiply().

int SDPConeCheckStorageFormat ( SDPCone  sdpcone,
int  blockj,
char  format 
)

Check validity of parameters.

Parameters
sdpconeSDP cone
blockjblock number
formatsuch as packed symmetric or upper full symmetric

Definition at line 101 of file dsdpadddata.c.

Referenced by SDPConeAddDataMatrix(), and SDPConeSetRMatrix().

int SDPConeClearVMatrix ( SDPCone  sdpcone,
int  blockj,
int  n 
)

Free V matrix.

Parameters
sdpconeSDP cone
blockjblock number j from 0 to nblocks
ndimension of the matrix

Definition at line 228 of file dsdpadddata.c.

Referenced by SDPConeSetXArray(), and SDPConeSetXMat().

int SDPConeSetRMatrix ( SDPCone  sdpcone,
int  blockj,
int  n,
char  format,
struct DSDPDataMat_Ops dsdpdataops,
void *  data 
)

Add identity to dual matrix.

Parameters
sdpconeSDP cone
blockjblock number j from 0 to nblocks
ndimension of the matrix
formatstorage format 'P' (default) or 'U'
dataaddress of a structure ( cast to void* ) with matrix data.
dsdpdataopsaddress of a structure of function pointers that operate on the matrix data
See also
SDPConeSetASparseVecMat()
SDPConeSetStorageFormat()
SDPConeSetBlockSize()
SDPConeCheckData()

Definition at line 181 of file dsdpadddata.c.

Referenced by SDPConeSetRIdentity().

int SDPConeSetXMat ( SDPCone  sdpcone,
int  blockj,
int  n 
)

Create X matrix.

Parameters
sdpconeSDP cone
blockjblock number j from 0 to nblocks
ndimension of the matrix

Definition at line 247 of file dsdpadddata.c.

int SDPConeValidStorageFormat ( SDPCone  sdpcone,
char  format 
)

Check validity of parameter.

Parameters
sdpconeSDP cone
formatsuch as packed symmetric or upper full symmetric

Definition at line 84 of file dsdpadddata.c.

Referenced by SDPConeCheckStorageFormat(), and SDPConeSetStorageFormat().

int SDPConeView ( SDPCone  sdpcone)

Print the SDPCone to the screen;.

Parameters
sdpconethe cone
See also
SDPConeViewDataMatrix()
SDPConeView2()
SDPConeView2()

Definition at line 617 of file dsdpadddata.c.