Main Page | Modules | Alphabetical List | Data Structures | Directories | File List | Globals | Related Pages

dsdpadddatamat.c File Reference


Detailed Description

Set sparse or dense matrices into the cone.

Definition in file dsdpadddatamat.c.

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.
int DSDPGetIdentityDataMatP (int, double, struct DSDPDataMat_Ops **, void **)
 Create a sparse matrix usuable by DSDP in packed symmetric format.
int DSDPSetDataMatZero (DSDPDataMat *A)
 Make a data matrix a zero matrix.
int SDPConeAddADenseVecMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, double val[], int nnz)
 Add a matrix $A_{i,j}$ in a dense format.
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 $A_{i,j}= alpha * v * v^T $ where v is a sparse vector.
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 $A_{i,j}$ in a sparse format.
int SDPConeAddConstantMat (SDPCone sdpcone, int blockj, int vari, int n, double value)
 Add a matrix $A_{i,j}$ whose elements are all the same.
int SDPConeAddDataMatrix (SDPCone, int, int, int, char, struct DSDPDataMat_Ops *, void *)
 Add a data matrix $A_{i,j}$.
int SDPConeAddIdentity (SDPCone sdpcone, int blockj, int vari, int n, double val)
 Add a matrix $A_{i,j}$ that is a multiple of the identity matrix.
int SDPConeSetADenseVecMat (SDPCone sdpcone, int blockj, int vari, int n, double alpha, double val[], int nnz)
 Set a matrix $A_{i,j}$ in a dense format.
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 $A_{i,j}= alpha * v * v^T $ where v is a sparse vector.
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 $A_{i,j}$ in a sparse format.
int SDPConeSetConstantMat (SDPCone sdpcone, int blockj, int vari, int n, double value)
 Set a matrix $A_{i,j}$ whose elements are all the same.
int SDPConeSetIdentity (SDPCone sdpcone, int blockj, int vari, int n, double val)
 Set a matrix $A_{i,j}$ to be a multiple of the identity matrix.
int SDPConeSetRIdentity (SDPCone sdpcone, int blockj, int n, double rr)
 Add identify matrix to dual matrix.
int SDPConeSetRMatrix (SDPCone, int, int, char, struct DSDPDataMat_Ops *, void *)
 Add identity to dual matrix.
int SDPConeSetZeroMat (SDPCone sdpcone, int blockj, int vari, int n)
 Set a matrix $A_{i,j}$ whose elements are all equal zero.


Function Documentation

int DSDPGetIdentityDataMatF int  n,
double  val,
struct DSDPDataMat_Ops **  dops,
void **  imat
 

Create a sparse matrix usuable by DSDP in full symmetric format.

Parameters:
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.

Referenced by SDPConeAddIdentity(), and SDPConeSetRIdentity().

int DSDPGetIdentityDataMatP int  n,
double  val,
struct DSDPDataMat_Ops **  dops,
void **  imat
 

Create a sparse matrix usuable by DSDP in packed symmetric format.

Parameters:
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.

Referenced by SDPConeAddIdentity(), and SDPConeSetRIdentity().

int DSDPSetDataMatZero DSDPDataMat A  ) 
 

Make a data matrix a zero matrix.

Parameters:
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.

Parameters:
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.

Referenced by SDPConeSetup().

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().


Generated on Fri Oct 21 14:28:38 2005 for DSDP by  doxygen 1.4.2