DSDP
Data Structures | Typedefs | Functions
dsdpdsmat.h File Reference

The interface between the SDPCone and the Delta S matrix. More...

Go to the source code of this file.

Data Structures

struct  DSDPDSMat_C
 Symmetric Delta S matrix for one block in the semidefinite cone. More...
 

Typedefs

typedef struct DSDPDSMat_C DSDPDSMat
 A symmetric Delta S matrix for one block in the semidefinite cone. More...
 

Functions

int DSDPDSMatDestroy (DSDPDSMat *)
 Free the data structure. More...
 
int DSDPDSMatGetSize (DSDPDSMat, int *)
 Set the opaque pointer and function pointers to the matrix. More...
 
int DSDPDSMatInitialize (DSDPDSMat *)
 Set pointers to null. More...
 
int DSDPDSMatMult (DSDPDSMat, SDPConeVec, SDPConeVec)
 Set values into the matrix. More...
 
int DSDPDSMatSetArray (DSDPDSMat, DSDPVMat)
 Set values into the matrix. More...
 
int DSDPDSMatVecVec (DSDPDSMat, SDPConeVec, double *)
 Compute the product x' A x. More...
 
int DSDPDSMatView (DSDPDSMat)
 Print the matrix. More...
 
int DSDPDSMatZeroEntries (DSDPDSMat)
 Zero the entries in the matrix. More...
 

Detailed Description

The interface between the SDPCone and the Delta S matrix.

Definition in file dsdpdsmat.h.

Typedef Documentation

◆ DSDPDSMat

typedef struct DSDPDSMat_C DSDPDSMat

A symmetric Delta S matrix for one block in the semidefinite cone.

typedef struct DSDPDSMat_C DSDPDSMat;

Definition at line 33 of file dsdpdsmat.h.

Function Documentation

◆ DSDPDSMatDestroy()

int DSDPDSMatDestroy ( DSDPDSMat A)

Free the data structure.

Parameters
Asymmetric DS matrix

Definition at line 70 of file dsdpdsmat.c.

◆ DSDPDSMatGetSize()

int DSDPDSMatGetSize ( DSDPDSMat  A,
int *  n 
)

Set the opaque pointer and function pointers to the matrix.

Parameters
Asymmetric DS matrix
ndimension

Definition at line 50 of file dsdpdsmat.c.

◆ DSDPDSMatInitialize()

int DSDPDSMatInitialize ( DSDPDSMat B)

Set pointers to null.

Parameters
Bpointer to matrix.

Definition at line 254 of file dsdpdsmat.c.

Referenced by DSDPBlockInitialize(), and DSDPDSMatDestroy().

◆ DSDPDSMatMult()

int DSDPDSMatMult ( DSDPDSMat  A,
SDPConeVec  X,
SDPConeVec  Y 
)

Set values into the matrix.

Parameters
Asymmetric DS matrix
Xin vector
Yproduct of A and X

Definition at line 154 of file dsdpdsmat.c.

◆ DSDPDSMatSetArray()

int DSDPDSMatSetArray ( DSDPDSMat  A,
DSDPVMat  T 
)

Set values into the matrix.

Parameters
Asymmetric DS matrix
TSource of entries in dense format
See also
DSDPSetFormatType()

Definition at line 130 of file dsdpdsmat.c.

◆ DSDPDSMatVecVec()

int DSDPDSMatVecVec ( DSDPDSMat  A,
SDPConeVec  X,
double *  vAv 
)

Compute the product x' A x.

Parameters
Asymmetric DS matrix
Xvector
vAvthe product

Definition at line 181 of file dsdpdsmat.c.

◆ DSDPDSMatView()

int DSDPDSMatView ( DSDPDSMat  A)

Print the matrix.

Parameters
Asymmetric DS matrix

Definition at line 92 of file dsdpdsmat.c.

◆ DSDPDSMatZeroEntries()

int DSDPDSMatZeroEntries ( DSDPDSMat  A)

Zero the entries in the matrix.

Parameters
Asymmetric DS matrix

Definition at line 110 of file dsdpdsmat.c.