dsdpadddata.c File Reference


Detailed Description

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

Definition in file dsdpadddata.c.

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


Function Documentation

int SDPConeCheckI ( SDPCone  sdpcone,
int  vari 
)

Check validity of parameter.

Parameters:
sdpcone SDP cone
vari variable 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:
sdpcone SDP cone
m number 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:
sdpcone SDP cone
blockj block number
n dimension 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:
sdpcone SDP cone
blockj block number
format such 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:
sdpcone SDP cone
blockj block number j from 0 to nblocks
n dimension 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:
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
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:
sdpcone SDP cone
blockj block number j from 0 to nblocks
n dimension of the matrix

Definition at line 247 of file dsdpadddata.c.

int SDPConeValidStorageFormat ( SDPCone  sdpcone,
char  format 
)

Check validity of parameter.

Parameters:
sdpcone SDP cone
format such 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:
sdpcone the cone
See also:
SDPConeViewDataMatrix()

SDPConeView2()

SDPConeView2()

Definition at line 617 of file dsdpadddata.c.


Generated on Sun Mar 23 07:30:49 2008 for DSDP by  doxygen 1.5.5