Example #1
0
std::string getErrorMessage()
{
   std::string errMessage ;
   Error callError = RFunction("geterrmessage").call(&errMessage);
   if (callError)
      LOG_ERROR(callError);   
   return errMessage;
}
Example #2
0
      RFunction Identity(int  dim)
{return RFunction(new function_algebra_identity(dim));}
RFunction Polynomial1D(const coord_type& c)    { return RFunction(new function_algebra_polynomial1D(c));}
RFunction S3(const double& a, const double& b) { return RFunction(new function_algebra_hermite(a,b));}
RFunction Rotation3D          (const coord_type& axis, double angle)
  { return RFunction(new function_algebra_rotation3D(axis,angle));}
RFunction DistanceToHyperplane(const coord_type& normal, double dist) 
  { return RFunction(new function_algebra_distance(normal,dist));}
RFunction ProjectToHyperplane (const coord_type& normal, double dist) 
  { return RFunction(new function_algebra_project(normal,dist));}
RFunction Circle   (const coord_type& m, double r) {return RFunction(new function_algebra_circle(m,r));}
RFunction Translate(const coord_type& t)           { return RFunction(new function_algebra_translate(t));}
Example #10
0
RFunction Scale    (const coord_type& diag)        { return RFunction(new function_algebra_scale(diag));}
Example #11
0
RFunction Norm2(int n)     { return RFunction(new function_algebra_norm2(n));}
Example #12
0
RFunction X(int i,int dim) { return RFunction(new function_algebra_coordinate_with_dim(i,dim));}
Example #13
0
RFunction X(int i)         { return RFunction(new function_algebra_coordinate(i));}
Example #14
0
RFunction Constant(const coord_type& p, int dDef) { return RFunction(new function_algebra_constant(p,dDef));}