I am starting to write a big python library for some area of mathematics.
So I have this data structure (defined in class A) which represents a mathematical model.
I have a bunch of smaller functions, which I have put in A:
A.f(), A.g(),...
Which are more or less "helper functions" that are needed to calculate more important functions A.X(), A.Y(),... which the end user is interested in.
All of these functions of course depend on the data in A.
But the number of methods in A is growing and growing and getting confusing. How does one split such a class into smaller pieces. Lets say, the data structure with basic operations in it and the "methods" that do calculations on the structure?
What is the usual approach and the most pythonic approach?