File numerics/src/tools/projectionOnCone.h#

Go to the source code of this file

function to project on cones

function to project on cones

Enums

enum [anonymous]#

Values:

enumerator PROJCONE_DUAL#
enumerator PROJCONE_INSIDE#
enumerator PROJCONE_BOUNDARY#

Functions

unsigned projectionOnCone(double *r, double mu)#

projectionOnCone Projection on the second Order Cone in R3, K{r,r10,0(r22+r32)mur1}

Parameters:
  • r[inout] the vector to be projected

  • mu[in] the angle of the cone

Returns:

the type of projection

unsigned projectionOnDualCone(double *u, double mu)#

projectionOnDualCone Projection on the second Order Cone in R3, K{r,r10,0mu(u22+u32)u1}

Parameters:
  • u[inout] the vector to be projected

  • mu[in] the angle of the cone

Returns:

the type of projection

void projectionOnSecondOrderCone(double *r, double mu, int size)#

projectionOnCone Projection on the second Order Cone in Rn, K{r,r10,0[r2,rn]mur1}

Parameters:
  • r[inout] the vector to be projected

  • mu[in] the angle of the cone

  • size[in] dimension