DSDP
dsdpdualmat.h
Go to the documentation of this file.
1#if !defined(__DSDP_DUALMATRIX_H)
2#define __DSDP_DUALMATRIX_H
3
4#include "sdpconevec.h"
5#include "dsdpbasictypes.h"
6#include "dsdpxmat.h"
11
19 void* matdata;
20 struct DSDPDualMat_Ops* dsdpops;
21};
22
28
29#ifdef __cplusplus
30extern "C" {
31#endif
32
34extern int DSDPDualMatSetData(DSDPDualMat*,struct DSDPDualMat_Ops*,void*);
35extern int DSDPDualMatGetType(DSDPDualMat, int *);
36
37extern int DSDPDualMatGetSize(DSDPDualMat, int*);
38extern int DSDPDualMatTest(DSDPDualMat);
41
50extern int DSDPDualMatLogDeterminant(DSDPDualMat, double*);
53extern int DSDPDualMatCheck(DSDPDualMat,SDPConeVec,SDPConeVec,DSDPIndex,DSDPVMat);
54extern int DSDPDualMatGetArray(DSDPDualMat,double*[],int*);
55
56#ifdef __cplusplus
57}
58#endif
59
60#endif
61
62
Solver, solution types, termination codes,.
DSDPTruth
Boolean variables.
struct DSDPDualMat_C DSDPDualMat
Represents an S matrix for one block in the semidefinite cone.
Definition dsdpdualmat.h:27
int DSDPDualMatSetArray(DSDPDualMat, DSDPVMat)
Print the matrix.
int DSDPDualMatInitialize(DSDPDualMat *)
Set pointers to null.
int DSDPDualMatDestroy(DSDPDualMat *)
Free the matrix structure.
Definition dsdpdualmat.c:65
int DSDPDualMatSetData(DSDPDualMat *, struct DSDPDualMat_Ops *, void *)
Set the opaque pointer and function pointers to the matrix.
Definition dsdpdualmat.c:49
int DSDPDualMatCholeskyBackwardMultiply(DSDPDualMat, SDPConeVec, SDPConeVec)
Multiply by triangular matrix.
int DSDPDualMatInverseMultiply(DSDPDualMat, DSDPIndex, SDPConeVec, SDPConeVec)
Multiply the inverse by a vector or solve the system of equations.
int DSDPDualMatCholeskyForwardMultiply(DSDPDualMat, SDPConeVec, SDPConeVec)
Multiply by triangular matrix.
int DSDPDualMatCholeskyFactor(DSDPDualMat, DSDPTruth *)
Factor the matrix.
int DSDPDualMatCholeskySolveBackward(DSDPDualMat, SDPConeVec, SDPConeVec)
Backward triangular solve.
int DSDPDualMatGetSize(DSDPDualMat, int *)
Free the matrix structure.
Definition dsdpdualmat.c:87
int DSDPDualMatInvert(DSDPDualMat)
Invert the matrix.
int DSDPDualMatCholeskySolveForward(DSDPDualMat, SDPConeVec, SDPConeVec)
Forward triangular solve.
int DSDPDualMatIsFull(DSDPDualMat, DSDPTruth *)
Factor the matrix.
int DSDPDualMatInverseAdd(DSDPDualMat, double, DSDPVMat)
Add a multiple of the inverse to T.
int DSDPDualMatLogDeterminant(DSDPDualMat, double *)
Free the matrix structure.
int DSDPDualMatView(DSDPDualMat)
Print the matrix.
The interface between the SDPCone and the dense matrix array.
struct DSDPVMat_C DSDPVMat
Represents a dense symmetric matrix for one block in the semidefinite cone.
Definition dsdpxmat.h:26
Each block of the SDPCone has two vectors of appropriate size.
struct SDPConeVec_C SDPConeVec
SDPConeVec is a vector with the dimension of the block in the SDP cone.
Definition sdpconevec.h:26
Represents an S matrix for one block in the semidefinite cone.
Definition dsdpdualmat.h:18
Table of function pointers that operate on the S matrix.