commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Luc Maisonobe (JIRA)" <>
Subject [jira] [Commented] (MATH-569) Add more operators to FieldElement<T>
Date Mon, 09 May 2011 17:58:03 GMT


Luc Maisonobe commented on MATH-569:

This is possible only for negate() in the FieldElement<T> interface. Not all fields
support sqrt or pow. A typical example is Fraction, the square root of a fraction may not
be a fraction for example.

This is exactly this limitation that explains while only LU decomposition is implemented for
fields and not other decomposition algorithms.

One possibility would be to add an ExtendedFieldElement<T> interface that would add
these methods for the fields that support it (Complex, Dfp ...). Then, we could add new decomposition
algorithms that would work on these extended fields (but still not on simpler fields like

> Add more operators to FieldElement<T>
> -------------------------------------
>                 Key: MATH-569
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.0
>            Reporter: Arne Plöse
>            Priority: Minor
> it would be nice to have some additional operators in FieldElement i.e.
>     T negate();
>     T pow(T x);
>     T sqrt();
> maybe the double variant i.e.
>     T pow(double x);
> as well.
> This would be affect FieldVector | Matrix, BigReal, ... as well.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message