DSDP
|
Implementation of the SDPCone vector operations. More...
Go to the source code of this file.
Functions | |
int | DSDPIndexCreate (int n, DSDPIndex *IS) |
Allocate array for indices. More... | |
int | DSDPIndexDestroy (DSDPIndex *IS) |
Deallocate memory. More... | |
int | DSDPIndexInitialize (DSDPIndex *IS) |
Set structure pointers to 0. More... | |
int | DSDPIndexView (DSDPIndex IS) |
Print indices. More... | |
int | SDPConeVecAXPY (double alpha, SDPConeVec x, SDPConeVec y) |
Add a multiple of X to Y. More... | |
int | SDPConeVecCopy (SDPConeVec v1, SDPConeVec v2) |
Copy v1 to v2. More... | |
int | SDPConeVecDot (SDPConeVec V1, SDPConeVec V2, double *ans) |
Inner product of two vectors. More... | |
int | SDPConeVecDuplicate (SDPConeVec V1, SDPConeVec *V2) |
Allocate another vector with the same structure as the first. More... | |
int | SDPConeVecNorm2 (SDPConeVec VV, double *vnorm) |
Compute the Euclidean norm. More... | |
int | SDPConeVecNormalize (SDPConeVec V) |
Scale the vector to norm of 1. More... | |
int | SDPConeVecScale (double alpha, SDPConeVec VV) |
Compute the Euclidean norm. More... | |
int | SDPConeVecSet (double alpha, SDPConeVec V) |
Set each element of vector to this number. More... | |
int | SDPConeVecView (SDPConeVec V) |
Print the elements of the vector. More... | |
int | SDPConeVecZero (SDPConeVec V) |
Zero the elements of the vector. More... | |
Implementation of the SDPCone vector operations.
Definition in file sdpconevec.c.
int DSDPIndexCreate | ( | int | n, |
DSDPIndex * | IS | ||
) |
Allocate array for indices.
n | dimension of block or vector associated with it. |
IS | indices |
Definition at line 248 of file sdpconevec.c.
Referenced by DSDPBlockSetup().
int DSDPIndexDestroy | ( | DSDPIndex * | IS | ) |
Deallocate memory.
IS | indices |
Definition at line 264 of file sdpconevec.c.
Referenced by DSDPBlockTakeDown().
int DSDPIndexInitialize | ( | DSDPIndex * | IS | ) |
Set structure pointers to 0.
Identifies sparsity in SDPConeVec.
IS | indices |
Definition at line 234 of file sdpconevec.c.
Referenced by DSDPBlockInitialize().
int DSDPIndexView | ( | DSDPIndex | IS | ) |
int SDPConeVecAXPY | ( | double | alpha, |
SDPConeVec | x, | ||
SDPConeVec | y | ||
) |
Add a multiple of X to Y.
alpha | scalar |
x | a vec |
y | a vec |
Definition at line 178 of file sdpconevec.c.
Referenced by DSDPLanczosStepSize().
int SDPConeVecCopy | ( | SDPConeVec | v1, |
SDPConeVec | v2 | ||
) |
Copy v1 to v2.
v1 | source |
v2 | destination |
Definition at line 103 of file sdpconevec.c.
Referenced by DSDPLanczosStepSize().
int SDPConeVecDot | ( | SDPConeVec | V1, |
SDPConeVec | V2, | ||
double * | ans | ||
) |
Inner product of two vectors.
V1 | a vec |
V2 | a vec |
ans | the inner product |
Definition at line 125 of file sdpconevec.c.
Referenced by DSDPDataMatCheck(), DSDPLanczosStepSize(), SDPConeComputeHessian(), and SDPConeComputeRHS().
int SDPConeVecDuplicate | ( | SDPConeVec | V1, |
SDPConeVec * | V2 | ||
) |
Allocate another vector with the same structure as the first.
V1 | source vector |
V2 | new vector |
Definition at line 195 of file sdpconevec.c.
Referenced by DSDPBlockSetup(), DSDPFastLanczosSetup(), and DSDPRobustLanczosSetup().
int SDPConeVecNorm2 | ( | SDPConeVec | VV, |
double * | vnorm | ||
) |
Compute the Euclidean norm.
VV | a vec |
vnorm | its norm |
Definition at line 143 of file sdpconevec.c.
Referenced by DSDPLanczosStepSize(), and SDPConeVecNormalize().
int SDPConeVecNormalize | ( | SDPConeVec | V | ) |
Scale the vector to norm of 1.
V | the vector |
Definition at line 84 of file sdpconevec.c.
Referenced by DSDPLanczosStepSize().
int SDPConeVecScale | ( | double | alpha, |
SDPConeVec | VV | ||
) |
Compute the Euclidean norm.
alpha | scalar. |
VV | a vec |
Definition at line 161 of file sdpconevec.c.
Referenced by SDPConeVecNormalize(), and SDPConeXVMultiply().
int SDPConeVecSet | ( | double | alpha, |
SDPConeVec | V | ||
) |
Set each element of vector to this number.
alpha | scalar. |
V | a vec |
Definition at line 211 of file sdpconevec.c.
Referenced by DSDPLanczosStepSize(), and DSDPVMatCheck().
int SDPConeVecView | ( | SDPConeVec | V | ) |
Print the elements of the vector.
V | the vector |
Definition at line 49 of file sdpconevec.c.
int SDPConeVecZero | ( | SDPConeVec | V | ) |
Zero the elements of the vector.
V | the vector |
Definition at line 67 of file sdpconevec.c.
Referenced by DSDPLanczosStepSize().