DSDP
Data Structures | Typedefs | Functions
sdpconevec.h File Reference

Each block of the SDPCone has two vectors of appropriate size. More...

Go to the source code of this file.

Data Structures

struct  SDPConeVec_C
 Vector whose length corresponds to dimension of a block in a cone. More...
 

Typedefs

typedef struct SDPConeVec_C SDPConeVec
 SDPConeVec is a vector with the dimension of the block in the SDP cone. More...
 

Functions

int DSDPIndexCreate (int, DSDPIndex *)
 Allocate array for indices. More...
 
int DSDPIndexDestroy (DSDPIndex *)
 Deallocate memory. More...
 
int DSDPIndexInitialize (DSDPIndex *)
 Identifies sparsity in SDPConeVec. More...
 
int DSDPIndexView (DSDPIndex)
 Print indices. More...
 
int SDPConeVecAXPY (double, SDPConeVec, SDPConeVec)
 Add a multiple of X to Y. More...
 
int SDPConeVecCopy (SDPConeVec, SDPConeVec)
 Copy v1 to v2. More...
 
int SDPConeVecDot (SDPConeVec, SDPConeVec, double *)
 Inner product of two vectors. More...
 
int SDPConeVecDuplicate (SDPConeVec, SDPConeVec *)
 Allocate another vector with the same structure as the first. More...
 
int SDPConeVecNorm2 (SDPConeVec, double *)
 Compute the Euclidean norm. More...
 
int SDPConeVecNormalize (SDPConeVec)
 Scale the vector to norm of 1. More...
 
int SDPConeVecScale (double, SDPConeVec)
 Compute the Euclidean norm. More...
 
int SDPConeVecSet (double, SDPConeVec)
 Set each element of vector to this number. More...
 
int SDPConeVecView (SDPConeVec)
 Print the elements of the vector. More...
 
int SDPConeVecZero (SDPConeVec)
 Zero the elements of the vector. More...
 

Detailed Description

Each block of the SDPCone has two vectors of appropriate size.

Definition in file sdpconevec.h.

Typedef Documentation

SDPConeVec is a vector with the dimension of the block in the SDP cone.

Definition at line 26 of file sdpconevec.h.

Function Documentation

int DSDPIndexCreate ( int  n,
DSDPIndex *  IS 
)

Allocate array for indices.

Parameters
ndimension of block or vector associated with it.
ISindices

Definition at line 248 of file sdpconevec.c.

Referenced by DSDPBlockSetup().

int DSDPIndexDestroy ( DSDPIndex *  IS)

Deallocate memory.

Parameters
ISindices

Definition at line 264 of file sdpconevec.c.

Referenced by DSDPBlockTakeDown().

int DSDPIndexInitialize ( DSDPIndex *  IS)

Identifies sparsity in SDPConeVec.

typedef struct { int *indx; } DSDPIndex;

Identifies sparsity in SDPConeVec.

Parameters
ISindices

Definition at line 234 of file sdpconevec.c.

Referenced by DSDPBlockInitialize().

int DSDPIndexView ( DSDPIndex  IS)

Print indices.

Parameters
ISindices

Definition at line 279 of file sdpconevec.c.

int SDPConeVecAXPY ( double  alpha,
SDPConeVec  x,
SDPConeVec  y 
)

Add a multiple of X to Y.

Parameters
alphascalar
xa vec
ya vec

Definition at line 178 of file sdpconevec.c.

Referenced by DSDPLanczosStepSize().

int SDPConeVecCopy ( SDPConeVec  v1,
SDPConeVec  v2 
)

Copy v1 to v2.

Parameters
v1source
v2destination

Definition at line 103 of file sdpconevec.c.

Referenced by DSDPLanczosStepSize().

int SDPConeVecDot ( SDPConeVec  V1,
SDPConeVec  V2,
double *  ans 
)

Inner product of two vectors.

Parameters
V1a vec
V2a vec
ansthe 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.

Parameters
V1source vector
V2new 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.

Parameters
VVa vec
vnormits 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.

Parameters
Vthe vector

Definition at line 84 of file sdpconevec.c.

Referenced by DSDPLanczosStepSize().

int SDPConeVecScale ( double  alpha,
SDPConeVec  VV 
)

Compute the Euclidean norm.

Parameters
alphascalar.
VVa 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.

Parameters
alphascalar.
Va vec

Definition at line 211 of file sdpconevec.c.

Referenced by DSDPLanczosStepSize(), and DSDPVMatCheck().

int SDPConeVecView ( SDPConeVec  V)

Print the elements of the vector.

Parameters
Vthe vector

Definition at line 49 of file sdpconevec.c.

int SDPConeVecZero ( SDPConeVec  V)

Zero the elements of the vector.

Parameters
Vthe vector

Definition at line 67 of file sdpconevec.c.

Referenced by DSDPLanczosStepSize().