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 SDPConeVecScale(double alpha, SDPConeVec VV)
Compute the Euclidean norm.
int SDPConeVecZero(SDPConeVec V)
Zero the elements of the vector.
int SDPConeVecCopy(SDPConeVec v1, SDPConeVec v2)
Copy v1 to v2.
int DSDPIndexInitialize(DSDPIndex *IS)
Set structure pointers to 0.
int SDPConeVecView(SDPConeVec V)
Print the elements of the vector.
Vector whose length corresponds to dimension of a block in a cone.
int SDPConeVecNormalize(SDPConeVec V)
Scale the vector to norm of 1.
int SDPConeVecSet(double alpha, SDPConeVec V)
Set each element of vector to this number.
int SDPConeVecNorm2(SDPConeVec VV, double *vnorm)
Compute the Euclidean norm.
int SDPConeVecDot(SDPConeVec V1, SDPConeVec V2, double *ans)
Inner product of two vectors.
int DSDPIndexDestroy(DSDPIndex *IS)
Deallocate memory.
int SDPConeVecDuplicate(SDPConeVec V1, SDPConeVec *V2)
Allocate another vector with the same structure as the first.
int DSDPIndexCreate(int n, DSDPIndex *IS)
Allocate array for indices.
int DSDPIndexView(DSDPIndex IS)
Print indices.
int SDPConeVecAXPY(double alpha, SDPConeVec x, SDPConeVec y)
Add a multiple of X to Y.