darioizzo / audi

Header only, C++ library (and the Python pyaudi package) implementing the algebra of Taylor truncated polynomials and a few algorithms useful for its applications (Differential Intelligence, automatic differentiation, Taylor Models, etc.)
http://darioizzo.github.io/audi/
GNU General Public License v2.0
71 stars 18 forks source link

Reimplement gdual print #51

Closed darioizzo closed 4 years ago

darioizzo commented 4 years ago

right now the print of a gdual is deriving from obake, but it is way too verbose for the user (while its good for debug purposes).

Reimplementing it without the verbose info would allow for a better experience of the gdual as a native type (similar to double or int)

Example:

obake::polynomials::d_packed_monomial<unsigned long long, 8u, void>
Coefficient type: double
Tag : obake::polynomials::tag
Rank : 1
Symbol set : {'dx'}
Number of terms : 2
1+dx

could be:

1+dx

the full obake output could be recovered via an ad hoc metod x.info(), for example

darioizzo commented 4 years ago

53 is addressing this