I don't get the point of doing it that way.  Wouldn't that mean that
you always do the arithmetic in mpmath, and then only convert to numpy
at the end?  That would defeat the purpose of using numpy.

Probably it's better to create a library that is backend agnostic, and
plug numpy and mpmath into it (but do it in such a way so that you can
still take advantage of the mpi functionality that is already in
mpmath).

Aaron Meurer

On Sat, Mar 31, 2012 at 11:44 PM, Bharath M R <[email protected]> wrote:
> @Aaron & Stefan
>
> I thought about the interval arithmetic implementation and I came up with
> this.
>
> Derive from mpmath interval arithmetic class and implement all the features.
> Add an `to_ndarray()` function to the class which converts the interval to
> an
> numpy array.
> An `eval(expr, lib = 'numpy') which evaluates and returns the result based
> on the
> rules.
>
> Is this a good strategy? or should I implement the complete interval
> arithmetic in
> sympy separately.
>
>
>
>>
> --
> You received this message because you are subscribed to the Google Groups
> "sympy" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/sympy/-/_PSpO9E6gNcJ.
>
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/sympy?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sympy?hl=en.

Reply via email to