# 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
• r[inout] the vector to be projected

• R[in] 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
• r[inout] the vector to be projected

• R[in] the radius of the cone

• dim[in] dimension of the cylinder