DSDP
dsdpdsmat.c File Reference

Call an implmentation of the Delta S matrix operation. More...

Go to the source code of this file.

Functions

int DSDPDSMatDestroy (DSDPDSMat *A)
 Free the data structure.
int DSDPDSMatGetSize (DSDPDSMat A, int *n)
 Set the opaque pointer and function pointers to the matrix.
int DSDPDSMatInitialize (DSDPDSMat *B)
 Set pointers to null.
int DSDPDSMatMult (DSDPDSMat A, SDPConeVec X, SDPConeVec Y)
 Set values into the matrix.
int DSDPDSMatOpsInitialize (struct DSDPDSMat_Ops *aops)
 Set pointers to null.
int DSDPDSMatSetArray (DSDPDSMat A, DSDPVMat T)
 Set values into the matrix.
int DSDPDSMatSetData (DSDPDSMat *M, struct DSDPDSMat_Ops *ops, void *data)
 Set the opaque pointer and function pointers to the matrix.
int DSDPDSMatVecVec (DSDPDSMat A, SDPConeVec X, double *vAv)
 Compute the product x' A x.
int DSDPDSMatView (DSDPDSMat A)
 Print the matrix.
int DSDPDSMatZeroEntries (DSDPDSMat A)
 Zero the entries in the matrix.

Detailed Description

Call an implmentation of the Delta S matrix operation.

Definition in file dsdpdsmat.c.

Function Documentation

◆ DSDPDSMatDestroy()

int DSDPDSMatDestroy ( DSDPDSMat * A)

Free the data structure.

Parameters
Asymmetric DS matrix

Definition at line 70 of file dsdpdsmat.c.

Referenced by DSDPBlockTakeDown().

◆ 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.

◆ DSDPDSMatOpsInitialize()

int DSDPDSMatOpsInitialize ( struct DSDPDSMat_Ops * aops)

Set pointers to null.

Parameters
aopspointer to table.

Definition at line 214 of file dsdpdsmat.c.

Referenced by DSDPDSMatInitialize().

◆ 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.

Referenced by SDPConeMultiply().

◆ DSDPDSMatSetData()

int DSDPDSMatSetData ( DSDPDSMat * M,
struct DSDPDSMat_Ops * ops,
void * data )

Set the opaque pointer and function pointers to the matrix.

Parameters
Msymmetric DS matrix
opspointer to a structure of function pointers
datapointer to a matrix structure

Definition at line 31 of file dsdpdsmat.c.

Referenced by DSDPDSMatInitialize().

◆ 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.

Referenced by SDPConeMultiply().

◆ 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.