Sympy.geometry Point Class Is Working Slow
I have a code which reads unstructured mesh. I wrote wrappers around geometric entities of sympy.geometry such as: class Point: def __init__(self, x, y, parent_mesh): s
Solution 1:
Take a look at the Point
class documentation, specifically, in one of the first examples:
Floats are automatically converted to Rational unless the evaluate flag is
False
.
So, you could pass a flag named evaluate
during initialization of your Point
classes:
self.shape = sympy.geometry.Point(x,y, evaluate=False)
which apparently signals what you're after.
Post a Comment for "Sympy.geometry Point Class Is Working Slow"