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