File numerics/src/tools/projectionOnDisk.h

Go to the source code of this file

functions to project on a cylinder

Functions

void projectionOnDisk(double *r, double R)

projectionOnDisk Projection onto the positive Disk of radius R \( \{ r, 0 \sqrt(r_1^2+r_2^2) \geq R \} \)

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

  • [in] R: the radius of the cone

void projectionOnGeneralDisk(double *r, double R, int dim)

projectionOnGeneralDisk Projection onto the positive Disk of radius R \( \{ r, 0 \sqrt(r_1^2+r_1^2) \geq R \} \)

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

  • [in] R: the radius of the cone

  • [in] dim: dimension of the cylinder