1 #if !defined(__SDPCONE_VECTORS_H) 2 #define __SDPCONE_VECTORS_H 37 #define SDPConeVecCreateWArray(a,b,c) 0;{ (*(a)).val=(b); (*(a)).dim=(c);} 47 #define SDPConeVecGetArray(a,b) 0;{ *(b)=((a).val); } 48 #define SDPConeVecRestoreArray(a,b) 0;{ *(b)=0;} 49 #define SDPConeVecGetSize(a,b) 0;{ *(b)=((a).dim); } 59 extern int DSDPIndexSetBasis(DSDPIndex,
int);
int SDPConeVecNorm2(SDPConeVec, double *)
Compute the Euclidean norm.
int SDPConeVecView(SDPConeVec)
Print the elements of the vector.
int SDPConeVecZero(SDPConeVec)
Zero the elements of the vector.
int DSDPIndexInitialize(DSDPIndex *)
Identifies sparsity in SDPConeVec.
int SDPConeVecNormalize(SDPConeVec)
Scale the vector to norm of 1.
int DSDPIndexCreate(int, DSDPIndex *)
Allocate array for indices.
int SDPConeVecSet(double, SDPConeVec)
Set each element of vector to this number.
int DSDPIndexView(DSDPIndex)
Print indices.
int SDPConeVecCopy(SDPConeVec, SDPConeVec)
Copy v1 to v2.
Vector whose length corresponds to dimension of a block in a cone.
int SDPConeVecDuplicate(SDPConeVec, SDPConeVec *)
Allocate another vector with the same structure as the first.
int SDPConeVecAXPY(double, SDPConeVec, SDPConeVec)
Add a multiple of X to Y.
int SDPConeVecScale(double, SDPConeVec)
Compute the Euclidean norm.
int DSDPIndexDestroy(DSDPIndex *)
Deallocate memory.
int SDPConeVecDot(SDPConeVec, SDPConeVec, double *)
Inner product of two vectors.