scpolytope.c
Go to the documentation of this file.
CBLAS_INLINE void ScaleVector(double f, unsigned int s, double *v) Scales a vector. Definition: basic_algebra.c:30 void SPolytopeDecreaseSamplingRadius(Tscpolytope *mp) Decreases the sampling radious. Definition: scpolytope.c:293 Definition of basic functions. unsigned int GetSPolytopeDim(Tscpolytope *mp) Returns the simple polytope dimensionality. Definition: scpolytope.c:239 void CutSPolytopeWithFace(double *t, double offset, unsigned int id, Tscpolytope *mp) Cuts a simple polytope with a given plane. Definition: scpolytope.c:199 unsigned int SPolytopeNumNeighbours(Tscpolytope *mp) Number of neighbours of the simple polytope. Definition: scpolytope.c:328 boolean RandomPointInSPolytope(double scale, double *t, Tscpolytope *mp) Random point on the polytope with uniform distribution. Definition: scpolytope.c:262 void CutSPolytope(double *t, double r, unsigned int id, Tscpolytope *mp) Crops the polytope bounding chart with a plane. Definition: scpolytope.c:186 CBLAS_INLINE double Norm(unsigned int s, double *v) Computes the norm of a vector. Definition: basic_algebra.c:356 void EnlargeSPolytope(double *t, Tscpolytope *mp) Ensures that a polytompe includes a given point. Definition: scpolytope.c:170 unsigned int DetermineSPolytopeNeighbour(double epsilon, double *t, Tscpolytope *mp) Identifes the neighbour containing a given point. Definition: scpolytope.c:105 boolean InsideSPolytope(double *t, Tscpolytope *mp) Identifies points inside a chart simple polytope. Definition: scpolytope.c:88 void SaveSPolytope(FILE *f, Tscpolytope *mp) Saves the chart polytope to a file. Definition: scpolytope.c:351 void DefineSPolytope(Tscpolytope *mp) Initial definition of the simple polytope bounding the local chart. Definition: scpolytope.c:43 double SPolytopeGetSamplingRadius(Tscpolytope *mp) Returns the current sampling radius. Definition: scpolytope.c:281 unsigned int GetSPolytopeNFaces(Tscpolytope *mp) Number of faces of a simple chart polytope. Definition: scpolytope.c:244 void LoadSPolytope(FILE *f, Tscpolytope *mp) Reads the chart polytope from a file. Definition: scpolytope.c:377 CBLAS_INLINE double GeneralDotProduct(unsigned int s, double *v1, double *v2) Computes the dot product of two general vectors. Definition: basic_algebra.c:15 Definitions of constants and macros used in several parts of the cuik library. double SPolytopeMaxVolume(Tscpolytope *mp) Maximum volume of the simple polytope. Definition: scpolytope.c:300 boolean SPolytopeRandomPointOnBoundary(double rSample, double *t, Tscpolytope *mp) Random point on the boundary of the chart. Definition: scpolytope.c:255 double GetSPolytopeBoxSide(Tscpolytope *mp) Returns the size of the box side. Definition: scpolytope.c:234 double GetSPolytopeRadius(Tscpolytope *mp) Returns the simple polytope radius. Definition: scpolytope.c:229 Definition of a smple polytope associated to a chart. #define MEM_DUP(_var, _n, _type) Duplicates a previously allocated memory space. Definition: defines.h:414 #define NO_UINT Used to denote an identifier that has not been initialized. Definition: defines.h:435 void InitEmptySPolytope(double delta, unsigned int k, double r, double sr, Tscpolytope *mp) Defines an empty chart simplieifed polytope. Definition: scpolytope.c:21 void SPolytopeIncreaseSamplingRadius(Tscpolytope *mp) Increases the sampling radius. Definition: scpolytope.c:286 void randomOnBall(double r, unsigned int k, double *p) Random number on a k dimensional ball. Definition: random.c:110 unsigned int SPolytopeNeighbourID(unsigned int n, Tscpolytope *mp) Returns the identifier of one of the neighbours of a polytope. Definition: scpolytope.c:333 #define MEM_EXPAND(_var, _n, _type) Expands a previously allocated memory space. Definition: defines.h:404 void GetSPolytopeFace(unsigned int n, double *f, Tscpolytope *mp) Gets a face. Definition: scpolytope.c:249 void CopySPolytope(Tscpolytope *mp_dst, Tscpolytope *mp_src) Copies the simplified polytope from one chart to another. Definition: scpolytope.c:54 Definition of basic randomization functions. void randomInBall(double r, unsigned int k, double *p) Random number in a k dimensional ball. Definition: random.c:126 unsigned int SPolytopeMemSize(Tscpolytope *mp) Computes the memory used by the polytope. Definition: scpolytope.c:341 void DeleteSPolytope(Tscpolytope *mp) Deletes the structure allocated by DefineSPolytope. Definition: scpolytope.c:411 |
Follow us!