DSDP
dsdpdsmat.h
Go to the documentation of this file.
1#if !defined(__DSDP_DSMATRIX_H)
2#define __DSDP_DSMATRIX_H
3
4#include "sdpconevec.h"
5#include "dsdpxmat.h"
6
12/* DSDPDSMat objects are not used for much: DS, X, eigenvalue stuff */
13/* These objects are good basically for assembling a matrix, accessing
14 the data, and applying the operator to a vector */
15
16/* DSDP Matrix Structure */
24 void *matdata;
25 struct DSDPDSMat_Ops* dsdpops;
26};
27
33typedef struct DSDPDSMat_C DSDPDSMat;
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39extern int DSDPDSMatGetType(DSDPDSMat, int *);
40extern int DSDPDSMatSetData(DSDPDSMat *, struct DSDPDSMat_Ops*, void*);
42
46extern int DSDPDSMatVecVec(DSDPDSMat, SDPConeVec, double*);
47
48extern int DSDPDSMatTest(DSDPDSMat);
49extern int DSDPDSMatGetSize(DSDPDSMat,int*);
50extern int DSDPDSMatView(DSDPDSMat);
51extern int DSDPDSMatDestroy(DSDPDSMat*);
52
53extern int DSDPDSMatCheck(DSDPDSMat,SDPConeVec,SDPConeVec,DSDPVMat);
54#ifdef __cplusplus
55}
56#endif
57
58
59#endif
60
61
int DSDPDSMatGetSize(DSDPDSMat, int *)
Set the opaque pointer and function pointers to the matrix.
Definition dsdpdsmat.c:50
int DSDPDSMatSetData(DSDPDSMat *, struct DSDPDSMat_Ops *, void *)
Set the opaque pointer and function pointers to the matrix.
Definition dsdpdsmat.c:31
int DSDPDSMatVecVec(DSDPDSMat, SDPConeVec, double *)
Compute the product x' A x.
Definition dsdpdsmat.c:181
int DSDPDSMatSetArray(DSDPDSMat, DSDPVMat)
Set values into the matrix.
Definition dsdpdsmat.c:130
int DSDPDSMatDestroy(DSDPDSMat *)
Free the data structure.
Definition dsdpdsmat.c:70
int DSDPDSMatView(DSDPDSMat)
Print the matrix.
Definition dsdpdsmat.c:92
int DSDPDSMatZeroEntries(DSDPDSMat)
Zero the entries in the matrix.
Definition dsdpdsmat.c:110
int DSDPDSMatMult(DSDPDSMat, SDPConeVec, SDPConeVec)
Set values into the matrix.
Definition dsdpdsmat.c:154
int DSDPDSMatInitialize(DSDPDSMat *)
Set pointers to null.
Definition dsdpdsmat.c:254
The interface between the SDPCone and the dense matrix array.
Each block of the SDPCone has two vectors of appropriate size.
Symmetric Delta S matrix for one block in the semidefinite cone.
Definition dsdpdsmat.h:23
Symmetric Delta S matrix for one block in the semidefinite cone.
Dense symmetric matrix for one block in the semidefinite cone.
Definition dsdpxmat.h:17
Vector whose length corresponds to dimension of a block in a cone.
Definition sdpconevec.h:13